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
5
votes
4 answers

blown up .sav file size using haven::write_sav()

I am writing SPSS .sav files from R using the package haven, which works very well for me in general. However I have noticed that the .sav file size written on disk using write_sav() seems to be much bigger than nescessary. Whenever I open and save…
rluech
  • 606
  • 4
  • 15
5
votes
1 answer

Is it possible to do glmm in Python?

Is it possible to do glmm in Python (like the GENLINMIXED analysis in SPSS)? I'm a big fan of statsmodels, but this library doesn't seem to support glmm... Are there any alternatives? -edit- Decided to do it with R and r2py... def…
Joost
  • 480
  • 1
  • 5
  • 15
5
votes
2 answers

Friedman's test in R gives different results from SPSS

I've recently made the switch from SPSS to R for some of my data analysis. As part of this I was running some already-made analyses in R that were previously in SPSS, just to have a nice tidy script that makes sense. My data in this case the…
eniseg
5
votes
1 answer

How to convert .dat + .sps to .sav on command line

I get a lot of datasets that arrive as .dat files with syntax files for converting to SPSS (.sps). I'm an R user, so I need to convert the .dat file into a .sav that R can read. In the past, I've used PSPP to do this manually. (I can't afford SPSS!)…
Chris Wilson
  • 6,599
  • 8
  • 35
  • 71
5
votes
3 answers

How to select cases based on criteria of several variables in SPSS?

In a dataset, there are 10 variables V1, V2,..., V10. How can I select cases in which the value of any of those variables is greater or equal, say, 10? I tried this but it didn't work: temporary. select if any(v1, v2, v3, v4, v5, v6, v7, v8,…
NonSleeper
  • 849
  • 1
  • 6
  • 17
5
votes
2 answers

SPSS date format when imported into R

I have not worked with SPSS (.sav) files before and am trying to work with some data files provided to me by importing them into R. I did not receive any explanation of the files, and because communication is difficult I am trying to figure out as…
helloB
  • 3,472
  • 10
  • 40
  • 87
5
votes
1 answer

IBM spss Modeler, how to delete rows containing missing values

All my data is in a .txt file, Field delimiters are Comma and Newline. So I used the "Var. File" component as Source component. I am trying to figure out how to delete the rows containing null values, and then get the output for further processing.
belas
  • 277
  • 4
  • 17
5
votes
5 answers

Getting an SPSS data file into R

At my company, we are thinking of gradually phasing out SPSS in choice of R. During the transition though we'll still be having the data coming in SPSS data file format (.sav). I'm having issues importing this SPSS datafile into R. When I import an…
steadyfish
  • 847
  • 2
  • 12
  • 27
4
votes
1 answer

Looping through variables in spss

Im looking for a way to loop through variables (eg week01 to week52) and count the number of times the value changes across the them. For example week01 to week18 may be coded as 1 week19 to week40 may be coded as 4 and week 41 to 52 may be coded…
4
votes
0 answers

How to open a password protected .sav (spss) file in R

I have a .sav (SPSS) data file. The file is password protected, and I have the password. I do not have SPSS. I typically use the haven package (read_sav()) to import .sav files into R; however, I cannot find a reference for how to unlock the file…
AWaddington
  • 725
  • 8
  • 18
4
votes
1 answer

How to get p value after ROC analysis with pRoc package?

After ROC analysis of a set of data, how to calculate p-value? With the same statistics, I saw that the p-value can be output in SPSS. The sample code is as follows: library(pROC) data(aSAH) head(aSAH) # gos6 outcome gender age wfns s100b …
dbcoffee
  • 173
  • 1
  • 8
4
votes
3 answers

Translate SPSS syntax files to R source code

A friend is in search of a method to translate SPSS 'syntax' files to semantically equivalent R source code files. I suppose, no one ever wrote a translator. But maybe I'm wrong. PS: Please excuse the wrong use of 'syntax': People using SPSS tend to…
SteAp
  • 11,853
  • 10
  • 53
  • 88
4
votes
2 answers

How to convert .sav file into csv file

How do you convert .sav into .csv, or .sav into pandas DataFrame? Is there a direct way or doing this or a package that can do this?
user11357465
4
votes
0 answers

Using metadata to format columns of a database in Python

I am working with a database that originally is in ‘.sav’ format of SPSS. This database has columns of information that do not optimize memory usage (i.e, strings variables have left blank spaces, also in the numeric there are decimals where there…
ramiromp
  • 53
  • 4
4
votes
1 answer

How do I use COMPUTE to create and calculate a series of values in SPSS?

I need to compute 61 new variables using a simple math equation based on 4 sets of 61 existing variables. I know I can write 61 compute statements. Is there a more elegant way of creating these variables? Here's how the 61 statements would…
janette
  • 43
  • 4