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
4
votes
1 answer

dynamically create variable names in loops - SPSS

I have a lot of variables with names like PRE_adam POST_adam PRE_betty POST_betty PRE_clara POST_clara ... for a lot of people's names. I want to calculate the difference between PRE_X and POST_X for a list of Xs - something like this: COMPUTE…
rabensky
  • 2,864
  • 13
  • 18
4
votes
1 answer

Non-ASCII characters in R, reading from .sav file

I am trying to read a .sav file into RStudio. The file contains data from a Spanish language survey, and when I read it into R -- even though my default text encoding has already been set to ISO-8859-1 -- the display of special characters is…
Mabyn
  • 316
  • 2
  • 20
4
votes
1 answer

Is it possible to create the data object in Python for SPSS

I have a python script that is reading in an XML file into an array (in a CSV format I created). I'd like to be able to use that data directly instead of saving to a file. Is this possible? So it would be like creating a Var.File node but instead…
Simon O'Doherty
  • 9,259
  • 3
  • 26
  • 54
4
votes
4 answers

How to export a dataset to SPSS?

I want to export a dataset in the MASS package to SPSS for further investigation. I'm looking for the EuStockMarkets data set in the package. As described in http://www.statmethods.net/input/exportingdata.html, I…
ABCD
  • 7,914
  • 9
  • 54
  • 90
4
votes
1 answer

Performance reading large SPSS file in pandas dataframe on Windows 7 (x64)

I have a large SPSS-file (containing a little over 1 million records, with a little under 150 columns) that I want to convert to a Pandas DataFrame. It takes a few minutes to convert the file to a list, than another couple of minutes to convert it…
bowlby
  • 649
  • 1
  • 8
  • 18
4
votes
1 answer

effect vs. predict function

I'm simultaneously trying to understand R's predict() function and the 'effects' package effect() function. Essentially, I'm running a regression to test the interaction of two dichotomous IVs on a DV while controlling for two continuous covariates.…
YTD
  • 457
  • 3
  • 11
4
votes
1 answer

How do I import data from a PL/SQL package into SPSS?

I have this huge Oracle package that generates a .CSV file after performing the traditional ETL process. Currently, I am using a bunch of staging tables to load data from various sources and transforming the data using the listagg function and…
FutbolFan
  • 13,235
  • 3
  • 23
  • 35
4
votes
2 answers

How to export data from spss to excel with out nulls

I have a large data set in SPSS (v20) with null values for some observations. I tried saving as an excel 2007 file, but when I open excel file "#NULL!" appears in cells where values are null. I'm going out of ram when trying to use 'find and…
user2543786
  • 39
  • 1
  • 2
4
votes
4 answers

Markdown in other statistics packages than R

I'm a great fan of R markdown, finding it even easier than weaving LaTeX for quick project documentation (less than 15 pages). However, I also have to support sometimes other Statistics packages (SPSS, Stata + SAS) and was wondering for equivalent…
Joanne Demmler
  • 1,406
  • 11
  • 31
4
votes
1 answer

Reproducing SPSS factor analysis with R

I'm hoping someone can point me in the right direction. First of all, I am not a statistician. I am a software developer that has been given the task of trying to reproduce the results of SPSS's factor analysis (using PC extraction & varimax…
4
votes
2 answers

How to read a .sav SPSS file in in R?

I've tried read.spps(), but I get an encoding error: library(foreign) read.spss('persona.sav') #>re-encoding from CP1252 Error in iconv(names(rval), cp, "") : unsupported conversion from 'CP1252' to '' In addition: Warning message: In…
Felipe Hoffa
  • 54,922
  • 16
  • 151
  • 325
4
votes
0 answers

How do I perform a Mixed model analysis on my data in SPSS?

In my thesis I'm trying to discover which factors influence the CSR (corporate social responsibility, GSE_RAW) behavior of companies. Two groups of possible factors / variables have been identified: company-specific and country-specific. First,…
Pr0no
  • 3,910
  • 21
  • 74
  • 121
4
votes
1 answer

Run CMD line from within SPSS

Is there a way to run a Windows command line from within SPSS? I'm working with a program that is not supported by SPSS BEGIN PROGRAM procedures and I would like to run a command line from my SPSS syntax (I'm not interested in the output and I…
Mercelo
  • 231
  • 1
  • 5
  • 14
4
votes
4 answers

SPSS Get working directory

I am using SPSS 19 und would like to get the current working directory to use the INSERT command, to call additional syntax files. Does somebody know how to do it? There seems to be a Python command (SpssClient.GetCurrentDirectory()) but that…
Christian Sauer
  • 10,351
  • 10
  • 53
  • 85
4
votes
3 answers

Actuarial survival analysis, divided into intervals

I'm trying to create an actuarial survival analysis in R (I'm following some worked examples). I think the best way to do this is using the survival package. So something like: library(survival) surv.test <- survfit(Surv(TIME,STATUS),…
Joanne Demmler
  • 1,406
  • 11
  • 31