Questions tagged [spss]
SPSS is a statistics package. Originally released in 1968, it is currently owned by IBM.
1,973
questions
0
votes
0
answers
8
views
Question about moderated mediation in SPSS (model 14, Hayes)
I hope someone can help me because I’m a bit lost. I’m currently doing a research for my master thesis on a topic regarding empowerment. For this research I came up with the following conceptual model:...
0
votes
0
answers
12
views
SPSS Failed case draws in BDI Depression scale- Sould I change Maxcasedraw or Maxparameterdraws
I would like to impute my dataset using SPSS-provided Imputation software. The BDI scale is the sum of 21 Items each coded 0-3. When doing the imputation I get a warning that I have failed case draws ...
0
votes
0
answers
11
views
Syntax command to change specific value in column
I did a little research and gave my respondents the option "other" where they could specify where they're from if not from those categories that I gave them as options. This "other"...
1
vote
1
answer
27
views
Is there a command to import an SPSS data frame (.sav) using dask?
I am trying to import multiple dataframes using Dask; however, it seems that unlike pandas, Dask doesn't have any commands to do so. Or at least I haven't been able to find a way to do it within its ...
0
votes
0
answers
31
views
Should I include year effects in my regression?
I made the following logistic regression model for my master's thesis.
FAIL= LATE + SIZE + AGE + EQUITY + PROF + SOLV + LIQ + IND. Where I take a look if late filing of financial statements (...
0
votes
0
answers
12
views
EdSurvey, reading in ECLS-K:2011 Data
I'm trying to get started with the EdSurvey package, to analyze data from the ECLS_K2011 data set, and I'm getting an error when I call readECLS_K2011().
The error message says
"Error in attr(...
1
vote
1
answer
19
views
Recoding misspelled entries in a string variable in SPSS
I am fairly new to SPSS and not very familiar with string variables. I have a large data set that contains multiple string variables. I know how to convert them into numeric, however, the issue is ...
1
vote
1
answer
27
views
Syntax for Sequential Variable Names
I am struggling to compile my large dataset and am assuming syntax commands are the answer, however, I am not skilled at all with syntax. My questions are specific to what syntax commands (or other ...
0
votes
0
answers
12
views
Precondition analysis
I would like to know whether I need to test every variable on its distribution and outliers or just the metrical variables? I mean does it make sense to test nominal variables on these aspects?
Thanks ...
0
votes
0
answers
10
views
Imputation of missing data
I would like to know, if I need to impute missing data on only some specific variables, can I impute the whole dataset and just integrate these specific variables in the original dataset?
Thanks for ...
1
vote
0
answers
26
views
Why am I getting the same result from Anova and aov_car in R, and why is it different from SPSS?
I am conducting a reanalysis of some data. The dv is continuous (beta value ie neural activity) and the iv is categorical (position) with three levels (1, 2, 3). Position is set as a factor. It is ...
0
votes
1
answer
33
views
How to read all spss files in a folder in pandas? and concatenate them
I would like to read several SAV files (SPSS) from a directory into pandas and concatenate them into one big DataFrame. I have not been able to figure it out though. Here is what I have so far:
...
1
vote
1
answer
24
views
Compute variable initial value
How can i do this in SPSS?i need to compute the variable 'Initial cash ratio, but don't know how to do this
1
vote
1
answer
26
views
How do i give ID numbers a consecutive number in SPSS
I have a dataset of different firms with their year of observation and other relevant information.
How do I sort the data by ID number and then add consecutive numbers based on the observation year?
...
-1
votes
0
answers
14
views
SPSS / Python referencing other tables searching for a string
I have a table with all of the streets in our county. I was hoping there was a way to reference that table somehow, search for the string in the table, assign the table street name to the spss file, ...
0
votes
0
answers
7
views
In SPSS what tools or techniques are there to mask or not report values that are under a certain threshold?
Is it possible to automatically enforce a reporting restriction on any output or calculation from SPSS so that values less then 10 or lower for any combination of are not reported?
When working with ...
0
votes
0
answers
50
views
how to fix spss client error:Java VM not found. C:\PROGRA~1\IBM\SPSS\STATIS~1\26\JRE\bin\j9vm\jvm.dll initialization routine failed
I installed spss statistics 26,when I run the application,a client error occurred.It says that java VM not found:jvm.dll initialization routine failed
0
votes
0
answers
22
views
How to Calibrate Neural Network model in SPSS
I'm trying to predict, my three variables which depend on 40 variables in SPSS. When I run ANN in SPSS its give predicted value and generate some weight of variables in xml file. I'm very much new to ...
1
vote
0
answers
19
views
Creating one variable from dichotomous variables with a caveat
I have seven dichotomous variables (0/1) for seven ethnicities/races, and one of those is bi/multiracial. Participants could choose more than one option. I need to create a new variable that would ...
0
votes
0
answers
17
views
Add Individual Data Points to SPSS Graph
Is there a function to add individual data points to spss boxplots? I'd like to create a box plot where each box also has the individual data points for that group.
Thanks!
2
votes
1
answer
24
views
How to select cases with same value in one variable but at least one value in two other variables in SPSS?
I have a dataset in SPSS as follows:
Key variables:
k_hidp is the household identifier
pidp_parent is the personal
identifier of the parent
pidp_child is the personal identifier of
the child
I ...
0
votes
0
answers
13
views
Normality Assumption - how to check you have not violated it?
I am rleatively new to statistics and am stuggling with the normality assumption.
I understand that parametric tests are underpinned by the assumption that the data is normally distributed, but there ...
1
vote
0
answers
22
views
Labelled R-Dataset and Import to SPSS
I would like to change a dataset I landed in RStudio (R-4.1.1) to a sav-file. For this I want to label the variables with the function labelled from the package 'labelled' accordingly, i.e. with ...
2
votes
1
answer
27
views
Pair multiple response sets in SPSS for their direct comparison
In my database, I have 5 multiple dichotomy sets MRST1 to MRST5 (already defined by MRSETS command); where each of the sets consists from the same list of items (item 1 to 10) although from different ...
0
votes
0
answers
30
views
Difference in R and SPSS LMM output
I am working on a linear mixed model and am attempting to run one on the same data in r and spss. I'm using a treatment with two levels, looking at 10 different regions, and using length as a ...
1
vote
2
answers
30
views
Splitting a string variable delimited list into individual binary variables in SPSS
I have a string variable created from a checkbox questions (Which of the following assets do you own?)
I am trying to create individual binary variables for each type of asset based on whether that ...
0
votes
0
answers
20
views
LOOP or DO REPEAT in SPSS
I cannot figure out how to write a LOOP or DO REPEAT for this piece of written syntax. I would like to perform the following set of syntax for about 75 variables - where x would be the variable, any ...
0
votes
1
answer
20
views
Variable names incompatible between SPSS and SAS
I imported an SPSS (.sav file) into SAS. Several of the variables are not showing up as they are named things like 'variable___1.1' When i try to KEEP certain variables in a data step, I get an error ...
1
vote
1
answer
37
views
SPSS repeat a task on many files
I would like to achieve the following:
For each of the 100 datasets (saved in .sav), 1) open file, 2) add a variable called 'Day' to it and populate it with number. so file1 will have 1 under 'Day', ...
0
votes
0
answers
35
views
Why methods and attributes of third party packages of python isn't recognized in spss syntax?
BEGIN PROGRAM.
import sys
sys.path.append("C:\Users\tayfunyigit\anaconda3\lib\site-packages")
import pandas as pd
print(pd.DataFrame([1,2,3]))
END PROGRAM.
The code snippet above is ...
0
votes
0
answers
12
views
How to insert values on a boxplot in SPSS?
I'm starting to use SPSS for some statistical analysis, so I don't have much knowledge of this tool, I still have many doubts.
I would like to know if it is possible to enter the values in a boxplot ...
2
votes
1
answer
42
views
How do I recode variables dependent on another variable in spss
when recoding variables, the dependency on another variable is apparently ignored.
My syntax:
if(leaFi15 = '1,2')
RECODE f13_1 f13_3 f13_5 f13_2 f13_6 f13_4 f13_7 f13_8 f13_9 f13_10 f13_11 f13_12 ...
0
votes
0
answers
40
views
SPSS vs R, Why fitted values of SMA are different?
In SPSS, fitted value of SMA(order=4) as follows:
Yt Year Quarter Date Y_fit
98.7 2004 1 Q1 2004
98.6 2004 2 Q2 2004
100.6 2004 3 Q3 2004
99.5 2004 4 Q4 2004
...
1
vote
1
answer
94
views
R - changing values to labels permanently in labelled data
I have worked with haven and sjlabelled to try and work with data labels included on sav files.
Here is some example data (the real data is much larger with many more variables, values, labels, etc., ...
1
vote
1
answer
35
views
system missings when computing variable
I'm trying to compute a new variable using 3 other variables. If all 3 conditions are positive, the new variable gives 1. My problem: if just 1 or 2 of these conditions are present, I get a value 0 ...
0
votes
1
answer
45
views
Destring many, many variables, checking for non-numeric values
Let's say I've imported data from excel that has many, many variables, say v1 through v4000. Each of these is intended to be numeric, and most cases have numeric-only values, but there are some cases ...
2
votes
1
answer
37
views
How to extract last variables' name and time, and after change all variables to missing?
Let's say I have the following example, with no mandatory questions:
I want to calculate "time_end" and variable's name for "time_end" ("x1") - blue cells.
It would be ...
0
votes
0
answers
10
views
Is there a way to test the difference between two regression models with different dependent variables?
My dissertation is on the relationship between interoception (IV) and orgasm (DV). The orgasm scale I am using has two subscales, and I have ran a regression for each one.
I am predicting that ...
0
votes
0
answers
35
views
How to get the specific label attached to a value/observation in a 'double' object
Im wondering how to return or print the label attached to a specific value within a column of type "double".
I am able to see the full output of all observations, followed by a list of all ...
1
vote
1
answer
19
views
How to replace identical values in multiple cases with the values of another variable? (SPSS)
If my variable REF has the value NA in a certain line (case), I want it to be the value of CASE instead of NA.
My data set:
CASE REF
1 NA
2 NA
3 1
4 NA
5 2
6 1
7 1
8 4
...
1
vote
1
answer
30
views
Calculation based on variable containing multiple possible substrings
I have 2 variables (source and platform) that has results such as:
“Source”:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 Edg/...
1
vote
1
answer
32
views
How to write a python function inside SPSS that creates new variables and appends them to the SPSS dataset?
I have recently started writing small Python program blocks in SPSS.
In my current dataset I coalesce two variables like this:
BEGIN PROGRAM PYTHON3.
import spss, spssdata
data = spssdata.Spssdata(...
0
votes
0
answers
59
views
How can I convert a JSON string to a .SAV outfile?
I am running an api that returns a an object in JSON format. I need to get out a file in .sav format so I can load it into SPSS. I couldn't find a way to do this. I also cannot use some external ...
1
vote
1
answer
29
views
SPSS Sum the data that meets particular condition (numerical variable)
I am trying to sum the income of the particular members that shares the same "index" number and present it as a new variable HHincome.
For example:
Members with index value of 1 would be ...
1
vote
0
answers
19
views
IBM SPSS How to import a Custom SQL Database Query
I am looking to see if the capability is there to have a custom SSMS sql query imported in SPSS (Statistical Package for the Social Sciences). I would want to build syntax that generates this query as ...
1
vote
1
answer
56
views
Changing value of existing valuelabels via Syntax
I'm currently transforming my survey results for analysis. The survey program I used (limesurvey) automatically generates value labels, but I need to change the value the labels corresponds with. SPSS ...
0
votes
0
answers
54
views
Propensity Score Matching in SPSS
I am using SPSS to generate a cohort of controls from a dataset. When I run the PSM function, SPSS generates a dataset with match IDs.
How can I make a control group on the original data set with ...
0
votes
1
answer
80
views
Case_when and mutate using multiple variables
Its my first time using R and I have been trying to transfer code across from SPSS to R, the syntax is creating a new variable in R using multiple conditions from multiple variables.
The equivalent ...
1
vote
0
answers
25
views
Why does the size of the same .sav file differ when it's generated by write_sav?
When I load a .sav file saved from SPSS into R using the haven package and then save it under a new name using write_sav without altering anything, the size of the new file is smaller than that of the ...
2
votes
1
answer
49
views
Lag function in SPSS
For my master's thesis I have to work with a database in order to make a logistic regression model. One of the variables of my model is NEWS, This should be a dummy variable that is equal to 1 if a ...