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

Running SPSS from Windows Command (CMD)

My SPSS works fine with GUI, but I want to start using syntax (*.sps) files and run SPSS from windows CMD without the GUI. The documentation here says it should be easy and specifies the following command: stats C:\cars.sav C:\analysis.sps However…
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87
3
votes
2 answers

Extracting then importing a Csv.gz file into Excel/SPSS...problem recognising the text qualifier?

I am using a file from Insideairbnb.com for my thesis. It is a csv.gz file so first I extracted it using the 'Archive Utility' for Mac. It is comma delimited and uses double quotes as the text qualifier which I specified in the Import popup but…
sara white
  • 31
  • 1
  • 3
3
votes
1 answer

Correlation between dependent and independent variables in non-normal distribution

Edit & Update: I am trying to use Python or SPSS to measure the effectiveness of some factors on one or more metrics. My dataset contains 100 records of patients who have been treated different times (e.g., three months). The dataset looks like…
Enayat
  • 3,904
  • 1
  • 33
  • 47
3
votes
2 answers

Question about SPSS modeler (There is an obstacle for make the stream run automatically)

I have SPSSmodeler stream which is now used and updated every week constantly to generate a certain dataset. A raw data for this stream is also renewed on a weekly basis. In part of this stream, there is a chunk of nodes that were necessary to…
Toshi
  • 45
  • 7
3
votes
1 answer

Quick way to count missing values in many variables

I've created a small program to count the number of 'None' so missing values. But the issue is that it is very time consuming (around 6-7mn for 1000 variables, and this is way too much because I am working on a lot bigger datasets). So I am looking…
LoC
  • 115
  • 7
3
votes
2 answers

Syntax if variable includes a specific string of text

I was wondering if there was a syntax to select all account names that include a certain string of text. For example, if I have a SPSS file that has 3 million account names, I'd want to look at only the account names that have a / TKS at the end.…
John Spirawk
  • 31
  • 1
  • 2
3
votes
4 answers

Convert SAV into CSV

I tried to convert a SAV file into CSV by using the following code data = pd.io.stata.read_stata("C:/Users/Nicola/Desktop/Relevant projects activities ACF/BRACED Final Evaluation/Evaluations/CSI_compil_2017.sav") writer =…
Nicola
  • 446
  • 7
  • 17
3
votes
0 answers

mixed models: r spss difference

I want to do a mixed model analysis on my data. I used both R and SPSS to verify whether my R results where correct, but the results differ enormous for one variable. I can't figure out why there is such a large difference myself, your help would be…
Linda
  • 31
  • 2
3
votes
1 answer

Using SPSS IF syntax to create a new variable from two categorical variables

I want to create a new variable from two other variables. The first is SEX (0=male, 1=female; there were no other genders selected by respondents though we had planned for that possibility) whereas the second is RACE9 (0=white, 1=racialized). The…
rabidotter
  • 31
  • 5
3
votes
2 answers

Is it faster to sort dates or sort strings in SPSS? If so, by how much?

I have a dataset of around 5 million records. The dates are read in as strings. They are in the form MM/DD/YYYY HH:MM:SS. I am only interested in the date part of it so I read them in as (A10) format which effectively trims the time. I then do ALTER…
Moohan
  • 933
  • 1
  • 9
  • 27
3
votes
0 answers

Vector with unknown length in spss

I want to find the mean of some variable which satisfy some attribute properties. For example, let att1 and att2 be two variable attributes. I want to create a variable that is the average of the variables for which both att1=3 and att2=3. The…
ThePortakal
  • 229
  • 2
  • 10
3
votes
2 answers

Extract string from a line of SPSS syntax and convert to date

A file handle in my syntax references a folder which includes a version number in YYYYDDMM format. For example, the "v20170215" referenced below: file handle WORKING/name='ROOT\Uploads\20141001_20150930 v20170215'. The version part of the file…
Larry
  • 183
  • 2
  • 12
3
votes
4 answers

Do IF and Compute in spss macros

I have the following spss syntax: DO IF SYSMIS(V5). COMPUTE V5 = LAG(V5). END IF. EXE. It works fine. However I'd like to repeat the same process for several variables. I tried to write a macro to achieve this but I keep getting error messages.…
Oken
  • 53
  • 1
  • 6
3
votes
2 answers

Selecting cases using macro in SPSS

I am trying to select cases which have specific diagnosis codes. Diagnosis codes are stored in multiple columns DX1, DX2, DX3, DX4 .....etc' for each patient. Each patient could have multiple diagnosis. If the ICD code 75673 matches in any of the…
Jaimin
  • 93
  • 4
3
votes
2 answers

Load R package in SPSS

I have just started working with the integration of R into SPSS and I have problems with loading some R packages in SPSS. I can load e.g. library(foreign) or library(graphics) but it does not work for library(xlsReadWrite) or library(FactoMineR). I…
Lakuca
  • 31
  • 1
  • 2