Questions tagged [spss]

SPSS is a statistics package. Originally released in 1968, it is currently owned by IBM.

SPSS (Statistical Package for the Social Sciences) is a proprietary cross-platform general-purpose statistical software package. Originally released in 1968, it is currently owned by IBM. SPSS's homepage

Versions 17 and 18 of SPSS were renamed with the acronym PASW (for Predictive Analytics SoftWare), but with version 19 it has been renamed to SPSS (see Wikipedia for a history of the name changes). One unique aspect of SPSS software compared to other popular propriety software packages (such as Stata or SAS) is the built in functionality to call Python or R commands within syntax. Otherwise it is largely comparable to other general proprietary and freeware packages (such as R), although it differs in some advanced statistical capabilities and aspects of data manipulation.

Suggested readings on using SPSS and learning the command syntax are two online PDF's.

Other useful print versions are

Other forums entirely devoted to the software are (and suggested material to search when encountering a problem with SPSS are):

Other suggested webpages are

PSPP is a free-ware, open source alternative largely mimicking the look and functionality of SPSS. You can also use SPSS with other software like R.

2084 questions
3
votes
1 answer

SPSS - How to identify First and Last available measurements in a row of 120 variables

I have checked a previous post about it (SPSS Last available measurement in a row of variables), but I still have doubts on how to perform this task more efficiently. I have a dataset with 98 million rows and 120 variables (one for each month, from…
Graveto
  • 33
  • 4
3
votes
1 answer

Quickly import custom SPSS commands from Python

I have written a neat Python module that contains some custom SPSS functions for my coworkers to use. However, to use the functionality, they first need to type BEGIN PROGRAM. Import module etc... before actually calling the function. Because most…
Sander
  • 399
  • 1
  • 4
  • 12
3
votes
1 answer

Syntax to loop variable recode in SPSS

I'm new to using syntax and need help recoding a long series of variables into new variables. Essentially the bit of code I am trying to loop is: RECODE cqC2_1_11 (9 thru Highest=10) (ELSE=COPY) INTO cqC2_1_11_T3. VARIABLE LABELS cqC2_1_11_T3…
Chad
  • 31
  • 2
3
votes
2 answers

Change value labels or delete specific value labels

I have a SPSS file that has 600 variables and for each of them there can be 0 to 4 different missing values. I am trying to change the missing values according to this pattern: 996 -> -6 997 -> -7 998 -> -8 999 -> -9 Where 996 is "No object" , 997…
Oligg
  • 375
  • 3
  • 19
3
votes
1 answer

SPSS syntax IF statement -> Multiple recode commands

I am trying to recode multiple variables with one IF statement. SPSS however does not like me doing so (I am probably missing something in the syntax, but I do not know what). Example syntax: IF (Var1=X) Var2=1 Var3=2 Var4=1. Execute. So I want…
Michael
  • 133
  • 1
  • 1
  • 4
3
votes
2 answers

Working with date ranges in SPSS

I have a variable for each month of the year which value is either 1 (designates something has been checked in that month) or SYSMIS. How do I recode this into a new variable e.g. VAR1 where I get something like 0 = no checks in a year 1 = 1 check…
Tony
  • 69
  • 8
3
votes
1 answer

Listing two or more variables alongside each other

I want an alternative to running frequency for string variables because I also want to get a case number for each of the string value (I have a separate variable for case ID). After reviewing the string values I will need to find them to recode…
Tony
  • 69
  • 8
3
votes
2 answers

R Box'M test for homocedasticity

I'm trying to replicate a linear discriminant analysis output from SPSS in R, and I'm having difficulties to find a way to perform an m-box test. The only thing I found was some code posted in a forum, to manually implement the process, but I was…
Sam
  • 6,437
  • 6
  • 33
  • 41
3
votes
2 answers

Reorder variable in SPSS

I am a SPSS newbie having trained previously in R and Stata, however some survey data I am working on uses SPSS so I am forced to convert. I have a relatively simple question - how once I have created a variable, do I then move it after another…
KT_1
  • 8,194
  • 15
  • 56
  • 68
3
votes
1 answer

SPSS crosstabs and missing values

I'm new in SPSS, I know how to do crosstabs. But, I don't know how to include in the crosstabs analysis the missing values. Is someway to do it? Is it possible to use multiple crosstabs like 23 or 34 ? How i can get relationship between two variable…
Another.Chemist
  • 2,386
  • 3
  • 29
  • 43
3
votes
2 answers

Running totals in SPSS / Python

I'm trying to create a running total in SPSS. Furthermore, I need more than one. My SPSS dataset looks like this (except the running total): [x] | [y] | [running total] 10 | 1 | 10 (= 0 + 10) 20 | 1 | 30 (= 10 + 20) 30 | 2 | 30 (= 0 + 30) 40 | 2 |…
DerGilb
  • 33
  • 2
3
votes
1 answer

Creating a dummy variable from a string variable

I'd like to create a dummy variable from a string variable (Q1) with different comments in it with syntax. If Q1 is empty paste a zero into Q1_d and if Q1 has text inside it paste one into Q1_d.
Deusdeorum
  • 1,426
  • 2
  • 14
  • 23
3
votes
2 answers

PSPP/SPSS syntax how to

How can I use syntax to fill specific rows with specific variables. Lets say I want to fill row 1 to 10 in my "location" variable with the integer 1. Rows 10-70 with 2 and so on. There is no programming I just want to fill specific rows of a…
Ned321
  • 33
  • 2
3
votes
1 answer

Count repeated values in variable and add results to a new one in SPSS

I have a SPSS dataset with information of different household members and I need to generate a new variable that counts the number of people that compose each one of these households.The original dataset is something like: ID | age | height 332 |…
vabm
  • 285
  • 7
  • 16
3
votes
2 answers

Possible to use less/greater than operators with IF ANY?

Is it possible to use <,> operators with the if any function? Something like this: select if (any(>10,Q1) AND any(<2,Q2 to Q10))
aldemrom
  • 48
  • 5