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

SPSS - Multiple Graphs

I create a graph in SPSS and can go in and change the colours and other visual properties. But then when I create another graph, it uses the old default properties again. I can see the code when I create the graph but not for the changes I make to…
Anthony
  • 249
  • 1
  • 5
  • 15
3
votes
3 answers

Access SPSS data from a Python, Java (groovy/grails)' or C++ app without license for SPSS?

I am finding mixed results googling. I have a need to parse a SPSS .sav file to discover the data layout and extract the survey results. Step one is to read the "schema" of the data. For example I need to know the question and its type of allowed…
Rich Sadowsky
  • 966
  • 1
  • 12
  • 22
3
votes
2 answers

How do I perform a left outer join using SPSS commands?

Can SPSS commands (e.g., MERGE FILES) be used to perform a left outer join between 2 SPSS datasets? Assume that the join field is not unique in either dataset. Example: Let the left Dataset1 contains 2 fields - ClassNbr and Fact1 - and these 4…
user491609
  • 33
  • 2
  • 4
3
votes
1 answer

How to show value labels in x-axis of a histogram?

I have a categorical variable that takes values 0-8. Each of these values are labelled with their respective category. When I try to make a histogram, I get 0-8 in the x axis instead of the value labels. I have been looking for an hour both online…
Victor Nielsen
  • 443
  • 2
  • 14
3
votes
1 answer

How can I make the following variable on SPSS?

I have a variable with values from -100 to 100. I want a new variable where -14 to 14 will be 1 and all others will be 0. I have this so far but I get an error. DO IF (Rad_Start_Minus_Chemo_start GT -14). Compute NACRT =1. ELSE IF…
3
votes
1 answer

SPSS: Looping over Several Variables

I am working in SPSS and have a large number of variables, call them v1 to v7000. I want to perform a series of "complex operations" on each variable to create a new set of variables: t1 to t7000. For the sake of illustration, let's just say the…
al wong
  • 31
  • 2
3
votes
1 answer

Syntax to generate a Syntax in SPSS

I’m trying to construct a Syntax to generate a Syntax in SPSS, but I’m having some issues… I have an excel file with metadata and I would like to use it in order to make a syntax to extract information from it (like this, if I have a huge database,…
Tui Allbrt
  • 89
  • 4
3
votes
4 answers

How do I get Pandas to read SPSS files?

I tried using the read_SPSS command, but it didn't work. The error seems to be telling me that I need pyreadstat, but I'm unable to even install that. Why, though, would I need pyreadstat? Isn't the ability to read .sav just built into Pandas…
RebelX0024
  • 31
  • 1
  • 2
3
votes
1 answer

Problem reading variables containing mix of numbers and strings

I am reading an Excel file (see syntax below) where some of the fields are text mixed with numbers. The problem is that SPSS reads some of these fields as numeric instead of string and then the text is deleted. I assume this happens in cases where a…
Noam
  • 33
  • 2
3
votes
2 answers

How to use R character vector element as string and variable inside function?

I am trying to apply SPSS style category labels to my dataset in R. I think my question arises as I do not know how to parse variables correctly, so is not necessarily related to just these types of data. To begin with, doing this manually as per…
rhacker007
  • 33
  • 3
3
votes
1 answer

Setting SPSS 26 python to an Anaconda user-created environment

I want to link SPSS's python (Edit/Options/File Locations/Python installation) to an Anaconda user-created environment. The only thing I could figure out was to point SPSS to Anaconda install folder, and SPSS then uses the base environment. Is there…
horace_vr
  • 3,026
  • 6
  • 26
  • 48
3
votes
2 answers

clear memory in SPSS, like what is done in R

Being an R user, I'm now trying to learn the SPSS syntax. I sed to add the command rm(list=ls()) at the being of R script to ensure that R is empty before I go on my work. Is there a similar command for SPSS? Thanks.
lokheart
  • 23,743
  • 39
  • 98
  • 169
3
votes
1 answer

Counting a range of values within each group

I have a dataset where each observation/row is a person belonging to a certain family. There is a variable "Family_ID" that for each member of the same family has the same number. Moreover, there is variable "Age" and according to this one I have…
Errebie
  • 35
  • 5
3
votes
2 answers

Carry Forward Data for Each Case

In SPSS, how do I pull forward longitudinal data to blank cells for each id? Example: ID Time Gender 1 1 M 1 2 . 1 3 . 2 1 F 2 2 . 2 3 . 3 1 . 3 2 F 3 3 . How do I get to this? ID Time Gender Gender_Recoded 1 …
3
votes
2 answers

Identify rows where a specific pattern change occurs

Introduction/background I am required to analyse respondent data in an spss data sheet but i believe it may be best to copy this data into excel or google sheets for this particular analysis I am about to describe. 600+ participants have been asked…