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
8
votes
0 answers

How to read & write .sav (SPSS) files using Node.js?

There are several questions and answers discussing how to read or write .sav files: Excel-related (e.g., How to open spss data files in excel?) PHP-related (e.g., Export data into SPSS file (*.sav)) Python-related (e.g., Exporting to SPSS files in…
Mihai
  • 2,807
  • 4
  • 28
  • 53
8
votes
2 answers

SPSS and PHP/MySQL Integration

I apologize up front for the broadness of this question, but I'm wondering if anyone has any suggestions/pointers. A friend's company uses SPSS for statistical data, surveys, etc. They'd like to be able to slice and dice the info via a web…
Don
  • 1,570
  • 4
  • 22
  • 38
8
votes
6 answers

Create summary table of categorical variables of different lengths

In SPSS it is fairly easy to create a summary table of categorical variables using "Custom Tables": How can I do this in R? General and expandable solutions are preferred, and solutions using the Plyr and/or Reshape2 packages, because I am trying…
Rene Bern
  • 545
  • 3
  • 10
  • 18
8
votes
3 answers

In SPSS, is it possible to export a dataset file to .CSV with the value names instead of the value numbers?

In my SPSS file, I have a variable called "X". It has four values: 1="dog", 2="cat", 3="hyena", 4="parrot". If I export my data to a .CSV file, here's what it looks like: X 1 2 3 4 I want the exported .CSV to look like…
user1626730
  • 3,783
  • 5
  • 20
  • 24
7
votes
4 answers

weight data with R Part II

Given is the following data frame: structure(list(UH6401 = c(1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1,…
Dominik
  • 2,753
  • 7
  • 28
  • 32
7
votes
2 answers

How to use a .SAS or SPS metadata file to read a CSV as a Pandas dataframe?

I have a big CSV file and it comes with two metadata description files. One has a .sas extension and the other a .sps. Opening them, they describe the CSV data format and categories. The files describe the data format and possible categories of each…
neves
  • 33,186
  • 27
  • 159
  • 192
7
votes
6 answers

Replicate "Custom Tables" comparison in R

I use SPSS everyday but have really been trying to learn R. The major thing that is holding me back is my need to easily generate tables, banners, and cross-tabs for the market research that I do. I love the Custom Tables option in SPSS and am…
Btibert3
  • 38,798
  • 44
  • 129
  • 168
7
votes
1 answer

Is it possible to automatically repair corrupt Excel workbooks?

I am using SPSS 15 to create several Excel reports which I am then consolidating using an Excel macro. Unfortunately that particular SPSS version produces .xls files that aren't easily readable for Excel 2007 and up. Excel 2003 gobbles those files…
Haris
  • 778
  • 2
  • 9
  • 20
7
votes
2 answers

information from `label attribute` in R to `VARIABLE LABELS` in SPSS

I'm working in R, but I need to deliver some data in SPSS format with both 'variable labels' and 'value labels' and I'm kinda stuck. I've added variable labels to my data using the Hmisc's label function. This add the variable labels as a label…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
6
votes
4 answers

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 55: character maps to

I am new to Python and am hoping that someone could please explain to me what the error message means. To be specific, I have some code of Python and SPSS combined together saved in Atom, which was created by a former colleague. Now since the…
user6655908
  • 77
  • 1
  • 1
  • 4
6
votes
4 answers

How did you experience the transition from SPSS to R?

The discussion in this question is the direct cause for me asking this question. The more general reason is the fact that I often have to explain R use to people that are only familiar with SPSS. I know most of the basics of SPSS, as we still use it…
Joris Meys
  • 106,551
  • 31
  • 221
  • 263
6
votes
7 answers

Importing SPSS dataset into Python

Is there any way to import SPSS dataset into Python, preferably NumPy recarray format? I have looked around but could not find any answer. Joon
joon
  • 3,899
  • 1
  • 40
  • 53
6
votes
7 answers

How can I loop through variables in SPSS? I want to avoid code duplication

Is there a "native" SPSS way to loop through some variable names? All I want to do is take a list of variables (that I define) and run the same procedure for them: pseudo-code - not really a good example, but gets the point across... for i in…
chucknelson
  • 2,328
  • 3
  • 24
  • 31
6
votes
4 answers

How to get descriptive statistics on questionnaire items by group using SPSS?

I have carried out an evaluation of a product using likert scale questionnaire and imported the date into SPSS. I have my columns arranged as follows: ID, Group, Q1, Q2, Q3, Q4 I have two different groups completing the questionnaire, with each…
David
  • 61
  • 1
  • 1
  • 2
5
votes
3 answers

How to replace values by labels in data.frames from spss files?

I have to read a sav file I use the package haven library(haven) dataset<- read_sav("datafile.sav") In the console I can see the labels : dput(head(voyages$portdep)) structure(c(50422, 50299, 50299, 50299, NA, NA), label = "Port of…
Wilcar
  • 2,349
  • 2
  • 21
  • 48