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

Can SPSS treat a collection of Nominal Variables as one variable?

I have a lot of movie data from IMDB and I'm in the middle of cleaning up the data and making it so that 1 row = 1 movie as the database often has multiple records for a single film. I've restructured the data so that what was a single 'Country'…
3
votes
4 answers

Specifying relative paths in SPSS 18

In SPSS 11 it was possible to specify relative paths. Example: FILE HANDLE myfile='..\..\data\current.txt' /LRECL=533. DATA LIST FILE=myfile / ... This worked because apparently, SPSS 11 set the working folder to the path where the source .SPS file…
exhuma
  • 20,071
  • 12
  • 90
  • 123
3
votes
3 answers

converting mass .csv files into SPSS files

I've done some searches but still haven't found the answer to my problem. I have a large number of .csv files which I would like to convert to SPSS files. Say I have 1000 .csv files and I would like to have them all into 1000 SPSS files. I can do…
TVV
  • 69
  • 6
3
votes
2 answers

reading SPSS file into R throwing error - error reading system-file header

Lately, I sometimes get an error when reading SPSS files using read.spss from the foreign package: Error in read.spss("sample.sav") : error reading system-file header In addition: Warning message: In read.spss("sample.sav") : sample.sav: Bad…
Mark Heckmann
  • 10,943
  • 4
  • 56
  • 88
3
votes
3 answers

How do you include categories with 0 responses in SPSS frequency output?

Is there a way to display response options that have 0 responses in SPSS frequency output? The default is for SPSS to omit in the frequency table output any response option that is not selected by at least a single respondent. I looked for a…
AmberJ
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

How can I calculate the number of cases in SPSS?

I would like to calculate the last column with SPSS without turning the columns into 1.
Ebru
  • 59
  • 1
  • 4
3
votes
2 answers

SPSS syntax - use path of the file

I have a bunch of SPSS data and syntax files which I am moving around, changing folders on a daily basis. However, the relative paths remains the same. Is there a way to make use of this fact? e.g.: use the INCLUDE command and reference a syntax…
horace_vr
  • 3,026
  • 6
  • 26
  • 48
3
votes
2 answers

Check valid values of likert scales in R

I'm a SPSS user trying to switch to R. I have several variables in a data frame (ea01 to ea06; pre01 to pre09). Data comes from a questionnaire and is in likert format (integer from 1 to 5). SPSS has an option to validate the values of these…
3
votes
1 answer

SPSS: Compute new variable - people who match 3+ of 12 variables?

I hope to explain this accurately. I have 12 dichotomous variables (yes/no) for which I want to compute a new variable that includes those who answered Yes to 3 or more of these 12 variables. I'm a bit soft on my programming these days so am having…
3
votes
1 answer

Assigning partner values for paired rows in SPSS

Imagine a dataset with pairs of participants ("Couple" 1-10), each of whom have a unique identifier ("Person" 1 or 2). Each of these individuals within a pair have a unique value on some variable, call it "Actor". I want to write a script that takes…
smgmu
  • 71
  • 1
  • 7
3
votes
2 answers

Data concatenation in SPSS

I have two data columns in SPSS hhid = 1 2 3 carid = 26 27 28 I want to create a new column which concatenates both the hhid and carid and gives me an output Newid = 1_26 2_27 3_28 I am new to SPSS, I appreciate your help.
user3637176
  • 31
  • 1
  • 1
  • 4
3
votes
2 answers

How to invert an axis in SPSS?

Is it possible to invert an axis in an SPSS graph, say from -1,0,1 to 1,0,-1 without using code?I have only been able to change the axes' coordination from x to y and reverse which was not what I wanted. I know inverting is possible with a code (or…
3
votes
1 answer

Looping in SPSS to work through the cases

I have a data set in SPSS containing a sequence of six variables from which I have to create a new variable which should contain the last value present in the sequence. Let's say the data look like this: (the second row contains all missing values…
Blain Waan
  • 393
  • 2
  • 4
  • 17
3
votes
1 answer

How to do leave-one-out cross validation in SPSS

I am having trouble understanding how to perform LOOCV in SPSS. I need to evaluate a simple linear regression $Y=aX+b$. Thanks.
user48331
3
votes
2 answers

Getting length of vector in SPSS

I have an sav file with plenty of variables. What I would like to do now is create macros/routines that detect basic properties of a range of item sets, using SPSS syntax. COMPUTE scale_vars_01 = v_28 TO v_240. The code above is intended to define…
nilsole
  • 1,663
  • 2
  • 12
  • 28