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
58
votes
15 answers

Read SPSS file into R

I am trying to learn R and want to bring in an SPSS file, which I can open in SPSS. I have tried using read.spss from foreign and spss.get from Hmisc. Both error messages are the same. Here is my code: ##…
Btibert3
  • 38,798
  • 44
  • 129
  • 168
42
votes
9 answers

Is there a Python module to open SPSS files?

Is there a module for Python to open IBM SPSS (i.e. .sav) files? It would be great if there's something up-to-date which doesn't require any additional dll files/libraries.
Lamps1829
  • 2,231
  • 3
  • 24
  • 32
37
votes
3 answers

Reading .sav file into R

I am trying to read a .sav file into R but I got the following warning: library("memisc") dataset <- data.frame(as.data.set(spss.system.file("dataset.sav"))) parseSysHeader(ptr) : file lacks info_flt64 record, using defaults Could someone tell…
Takahiro
  • 473
  • 1
  • 4
  • 7
36
votes
12 answers

R and SPSS difference

I will be analysing vast amount of network traffic related data shortly, and will pre-process the data in order to analyse it. I have found that R and SPSS are among the most popular tools for statistical analysis. I will also be generating quite a…
sfactor
  • 12,592
  • 32
  • 102
  • 152
29
votes
7 answers

How to open spss data files in Excel?

I want to open spss .sav data files in Excel without opening the spss files (I don't want to convert spss data file into Excel file). I know this is possible using OLDB connection, but I don't know how to do this.
Rama Moorthy
  • 555
  • 1
  • 10
  • 20
27
votes
4 answers

Ignore escape characters (backslashes) in R strings

While running an R-plugin in SPSS, I receive a Windows path string as input e.g. 'C:\Users\mhermans\somefile.csv' I would like to use that path in subsequent R code, but then the slashes need to be replaced with forward slashes, otherwise R…
mhermans
  • 2,097
  • 4
  • 18
  • 31
16
votes
6 answers

How do I calculate these statistics?

I'm writing an app to help facilitate some research, and part of this involves doing some statistical calculations. Right now, the researchers are using a program called SPSS. Part of the output that they care about looks like this: They're really…
Ryan Fox
  • 10,103
  • 5
  • 38
  • 48
15
votes
4 answers

Pairwise Correlation Table

I'm new to R, so I apologize if this is a straightforward question, however I've done quite a bit of searching this evening and can't seem to figure it out. I've got a data frame with a whole slew of variables, and what I'd like to do is create a…
Cody
  • 273
  • 1
  • 2
  • 8
14
votes
4 answers

Export R data.frame to SPSS

There is a package foreign with a function write.foreign() that can write a SPS and CSV file. The SPS file than can read the CSV fiel into SPSS including labels. Fine so far, but there are some issues with that function: Newer SPSS versions may…
BurninLeo
  • 4,240
  • 4
  • 39
  • 56
10
votes
1 answer

Getting "title already used as a name or title" error while reading SPSS (.sav) file in Python

I've working on reading an SPSS file (.sav). My code below can read .sav files. However, I've encounter a very strange error. When I try to read another .sav file, it gives the following error Traceback (most recent call last): File…
user3288051
  • 574
  • 1
  • 11
  • 28
10
votes
5 answers

Remove variable labels attached with foreign/Hmisc SPSS import functions

As usual, I got some SPSS file that I've imported into R with spss.get function from Hmisc package. I'm bothered with labelled class that Hmisc::spss.get adds to all variables in data.frame, hence want to remove it. labelled class gives me headaches…
aL3xa
  • 35,415
  • 18
  • 79
  • 112
10
votes
2 answers

Is linear regression the same thing as ordinary least squares in SPSS?

I want to use a linear regression model, but I want to use ordinary least squares, which I think it is a type of linear regression. The software I use is SPSS. It only has linear regression, partial least squares and 2-stages least squares. I have…
user41000
  • 285
  • 1
  • 6
  • 13
9
votes
2 answers

Warning / Error when Importing a .sav

I have two versions of SPSS at work. SPSS 11 running on Windows XP and SPSS 20 running on Linux. Both copies of SPSS work fine. Files created with either version of SPSS open without incident on the other version of SPSS. I.E. - I can create a .sav…
Choens
  • 1,312
  • 2
  • 14
  • 23
9
votes
1 answer

How to preserve Labels when SPSS file (.sav) imported into pandas via rpy?

I'm looking to work on a SPSS files (.sav) using pandas. In the absence of the SPSS program, here's what a typical file looks like when converted to .csv: On investigation into what the first two rows signify (I don't know SPSS), it seems that the…
Pyderman
  • 14,809
  • 13
  • 61
  • 106
8
votes
3 answers

Analysis of multiple response

df1 <- data.frame(c("male", "female", "male"), c("1", "2", "3", "4", "5", "6"), seq(141, 170)) names(df1) = c("gender", "age", "height") df1$age <- factor( df1$age, levels = c(1, 2, 3, 4, 5, 6), labels =…
BuckyOH
  • 327
  • 2
  • 8
  • 17
1
2 3
99 100