PDA

View Full Version : how to create dummy coding for my three level IV?



angelaabd
01-21-2009, 02:00 PM
:shakehead:shakehead:shakehead:shakehead:shakehead

Dragan
01-21-2009, 03:07 PM
how to do that in spss? thanks so much!!

Why do you need dummy codes if you are using SPSS? That is, can't you just use the geneal linear model (GLM) procedure?

angelaabd
01-21-2009, 03:19 PM
thanks.
BUt I do need to run regression instead of anova. because I am further testing mediators . I need to know the exact variance explained. also, I am testing a curvilinear relation instead of linear. if you have more suggestions, I would appreciate them

Masteras
01-21-2009, 04:23 PM
he means go to GLM and put the categorical in the factor box and the continuous in the covariates box. Since you want for the regression menu do this: let's say your var is for instance is coded in spss (in one column ofcourse) as 11223212321, ok? three levels. Go to transform>recode into different variables and there choose to produce the three column dummy variables, one at the time. Select if var00001=1 then change it into 1 and 0 otherwise (new col1), then if var00001=2 change it into 1 and zero else (new col2) and so on.

angelaabd
01-21-2009, 11:12 PM
thanks Masteras. I did it. you rock

Masteras
01-22-2009, 01:11 AM
that is true. lol

angelaabd
01-22-2009, 09:30 AM
could you answer my question on curvilinear please?