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
2 answers

Invalid Signature Exception with .sav file

New to scipy but not to python. Trying to import a .sav file to scipy so I can do some basic work on it. But, each time I try to import the file using scipy.io.readsav(), python throws an error: Traceback (most recent call last): File…
Peppa Jack
  • 55
  • 1
  • 4
3
votes
6 answers

Library (dylib) not loaded - image not found - Python IDE

Basically I'm trying to run some Python code from savReaderWriter module in order to create a .sav file ready to open in IBM SPSS. As a macOS user I needed to run these two lines in the terminal first for the module to work: echo 'export…
Maciej Gaca
  • 71
  • 1
  • 1
  • 6
3
votes
3 answers

Exporting SPSS variable labels

I am using Stata for data analysis but had to convert the dataset I am using from SPSS, which includes variable labels, by saving it as a .csv file. However, the variable labels were not exported to Stata in the process. I have followed the advice…
Sila
  • 31
  • 1
  • 1
  • 3
3
votes
0 answers

How to use R for multi-response questions in a survey and make comparison?

I've not found anything that is quite helpful for converting "MRSETS" command in SPSS into R. I am looking for similar codes for grouping multi-response questions for further analysis and making comparison between questions in survey and finding…
Marzieh
  • 31
  • 1
3
votes
1 answer

Export data into SPSS file (*.sav)

Is there any solution to export data into SPSS (*.sav) files? I have a web service with surveys, and result needed to be exported to different formats. I cant find any solution for SPSS. (in any language, free or non-free products - but need to…
Miroff
  • 326
  • 4
  • 15
3
votes
4 answers

SPSS print a statement to the ouput window

What syntax do I use to print "hello world" in the output window? I simply want to specify the text in the syntax and have it appear in the output.
Tikhon
  • 451
  • 1
  • 5
  • 13
3
votes
2 answers

How to equalize the number of rows per unit in an SPSS file

I have a file with a different number of rows for every "unit", and I'd like all the units to have the same number of rows, by adding the right number of empty rows per unit in the data. For example: data list list/ unit serial someData. begin…
eli-k
  • 10,898
  • 11
  • 40
  • 44
3
votes
1 answer

Spss select case by starting character

I have a data set and i have a variable which contains text, i need to select the cases that do not contain RT at the start. How can i go about doing this? i do not want to compute a new variable just want to set a filter. I know that i need to…
Bart123
  • 45
  • 2
  • 11
3
votes
1 answer

Reading .sav File in Python

I'm trying to read a .sav file with Python 3 using savReaderWriter: Here's my code : from savReaderWriter import SavReader with SavReader(mySavFile, returnHeader = True) as reader: header = reader.next() for line in reader: …
BarJacks
  • 119
  • 2
  • 6
3
votes
2 answers

SPSS CTables via macro

I am new to SPSS macros. I intend on automating CTables production. In the ctables everything remains the same except the variable. My command is: CTABLES /VLABELS VARIABLES=usevar anzahl gesamt F0passthrough DISPLAY=LABEL /TABLE usevar…
alx.chrs
  • 127
  • 3
  • 15
3
votes
1 answer

Assigning Values in SPSS using a Reference Variable

I am having some difficulty achieving the following functionality in SPSS. I'm trying to come up with a way to track pets admitted to a clinic with a certain disease. Originally the pets are assigned a certain number if they have this disease, but…
George
  • 179
  • 1
  • 11
3
votes
2 answers

SPSS: Inconsistent totals due to rounding of numbers

I am using weights when running the data with SPSS custom tables. Thus it is expected that the column or row values may not add up to row total, column total or Table Total due to rounding of decimals sample table result: …
dixi
  • 680
  • 1
  • 13
  • 27
3
votes
2 answers

SPSS issue with RENAME VARIABLES

I have a long syntax (1800 lines) and this one portion has been giving me trouble. I can't for the life of me figure out what I'm doing incorrectly. It is supposed to take an existing file and narrow it down to just the variables listed in the /KEEP…
Michael H
  • 31
  • 5
3
votes
2 answers

How to diagnose duplicated levels in an R import

I use R to analyze large data files from IPUMS, which published sophisticated micro-data on Census records. IPUMS offers its extracts as SPSS, SAS or STATA files. To get the data into R, I've had the most luck downloading the SPSS version and using…
Chris Wilson
  • 6,599
  • 8
  • 35
  • 71
3
votes
3 answers

SPSS - Macro variable that returns max(column)

I'm a beginner with SPSS macros, but I can't find any general guide on macro variables (I've obviously tried Raynald Levesque's site). So I'm trying to write a macro variable that gives me the maximum value of a column. The column is called anmois…
Negarev
  • 79
  • 2
  • 8