Search found 473 matches

Wed Nov 19, 2014 7:21 pm
Forum: Coding SPSS syntax
Topic: Creating series of Dummy Variables with Syntax
Replies: 2
Views: 623

Re: Creating series of Dummy Variables with Syntax

Macro may work. Suppose your two variables are called ba and cat:

Code: Select all

``````define manyLoop ().
!do !i = 1 !to 10
!do !j = 1 !to 35
compute !concat("ba", !i, "cat", !j) = (ba = !i & cat = !j) .
!doend
!doend
!enddefine .

manyLoop .
execute .``````
Thu Jan 23, 2014 1:54 pm
Forum: Coding SPSS syntax
Topic: Cases to vars challenge
Replies: 2
Views: 876

Re: Cases to vars challenge

Try this syntax: SORT CASES BY SubjectID Measure VisitNum. CASESTOVARS /ID=SubjectID Measure /INDEX=VisitNum /GROUPBY=VARIABLE. SORT CASES BY SubjectID Measure. CASESTOVARS /ID=SubjectID /INDEX=Measure /GROUPBY=VARIABLE. RENAME VARIABLES VisitDate.1 = HxVisitDate1 VisitDate.2 = HxVisitDate2 VisitDat...
Fri Nov 22, 2013 1:59 pm
Forum: General
Topic: Dummy variables in Logistic regression
Replies: 2
Views: 916

Re: Dummy variables in Logistic regression

Hi- I'm interested in running a Logistic regression using gender as my dependent variable and would like to use multiple categorical independent variables (special education classification, school) in my model. Is this recommended, if so, would I code all variables similarly, or is there another me...
Fri Nov 22, 2013 1:56 pm
Forum: Modifying SPSS output
Topic: Illustrating interaction effects with graph
Replies: 1
Views: 912

Re: Illustrating interaction effects with graph

I'm currently trying to create a graph in order to visually point out an interaction effect. At first, I used a grouped scatter plot which assigned values to 3 subgroups. Then I added the fit line for these subgroups. However, my teacher asked me to present a graph without showing all the dots and ...
Wed Oct 02, 2013 3:29 pm
Forum: Output
Topic: help with data and output
Replies: 1
Views: 911

Re: help with data and output

A few possibilities. Could you run a histogram and a descriptive to check the if there are data at all?
Wed Oct 02, 2013 1:36 pm
Forum: Statistics for beginners
Topic: Merging Variables
Replies: 2
Views: 903

Re: Merging Variables

Hi All I am a beginner to SPSS and have been trying to work out something with little success. I have multiple variable labels that I want to merge into one output. The example I have is below. VARIABLE LABELS NAME 'NAME'. MISSING VALUES NAME (0). ADD VALUE LABELS NAME 1 'Bill' 2 'Frank' 3 Stan 4 '...
Wed Oct 02, 2013 1:22 pm
Forum: Coding SPSS syntax
Topic: Loop and concatenate name
Replies: 1
Views: 887

Re: Loop and concatenate name

I would like to implemment the following syntax in a loop, but I don't know how to concatenate the name in the command to save the files. GET FILE='X:\atus\admin\ahtus\data\2003\01_orig\download\usa0312quest.sav'. select if wave=1. save outfile='X:\atus\admin\ahtus\data\2003\01_orig\download\usa200...
Fri Jul 05, 2013 5:58 pm
Forum: Errors
Topic: Spreadsheet goes BLANK when I try to sort or split!!
Replies: 1
Views: 960

Re: Spreadsheet goes BLANK when I try to sort or split!!

If you run a frequency on "Frame_Condition," can you describe what the table looks like?
Fri Jul 05, 2013 5:54 pm
Forum: General
Topic: From zero
Replies: 1
Views: 925

Re: From zero

SPSS Statistics Base should be able to do what you want:
http://public.dhe.ibm.com/common/ssi/ec ... 21USEN.PDF
Fri Jul 05, 2013 5:40 pm
Forum: General
Topic: How to test proportions of one variable
Replies: 5
Views: 1128

Re: How to test proportions of one variable

Try Analyze > Non-parametric > One-sample chi-square.

Here is a good resource:
https://statistics.laerd.com/spss-tutor ... istics.php

The first 5 illustrations are not applicable to you, you can jump right to the 6th one for the demonstration.
Wed Apr 17, 2013 12:37 pm
Forum: Data input
Topic: T-Test on interaction in Anova
Replies: 1
Views: 770

Re: T-Test on interaction in Anova

Use general linear model > univariate. Put in the appropriate dependent variable and factors, and then specify the interaction after clicking the Model button.
Wed Apr 17, 2013 12:33 pm
Forum: SPSS for beginners
Topic: Crosstabs
Replies: 1
Views: 560

Re: Crosstabs

See http://www-01.ibm.com/support/docview.w ... wg21479398

It is likely that when the cases have a value for the first variable, they don't have any value in the second variable.
Tue Apr 09, 2013 3:08 pm
Forum: SPSS for beginners
Replies: 1
Views: 566

This is mostly a conceptual question. To be qualified as a confounder, a variable must fulfill two conditions: 1) The variable itself is a causal determinant of the dependent variable. Or it is a proxy of another causal determinant of the dependent variable, and 2) The variable itself is correlated ...
Tue Apr 09, 2013 2:52 pm
Forum: Output
Topic: Two-Way ANOVA Post Hoc Tests Won't Run
Replies: 1
Views: 824

Re: Two-Way ANOVA Post Hoc Tests Won't Run

To perform a post-hoc test each small group has to provide their standard error. If there is any group that has only one case, there will be no SE to be spoken off. Doubling the reading will not help because SD is zero (same numbers have zero variation), and SE will then also be zero. You should use...
Tue Apr 09, 2013 2:47 pm
Forum: SPSS for beginners