I've been advised to treat the categorical variable GENDER as continuous for
a particular GLM procedure. That is, to use it as a covariate rather than
fixed effect.
I was told that to do this in SPSS, I must code it as a dummy variable
rather than using effect coding. Is this correct? What is the rationale
please?
Thanks
Max
Thom
However, treating gender as a covariate in GLM terminology usually is a
BAD IDEA. When you do this, you do get the main effect of gender, but
you are not taking into account the interaction of gender with the other
independent variables. Why throw information away?
Art
A...@DrKendall.org
Social Research Consultants
I don't follow, Art. There is nothing preventing you from including
covariate x factor interactions in GLM UNIANOVA syntax.
However, while playing with an example, I DID find that you can get
different results for the two methods if you go with the default Type
III SS. Is this what you were getting at?
Here's the example I tried.
GET FILE='C:\Program Files\SPSS\1991 U.S. General Social Survey.sav'.
* Use Type III SS (the default) .
UNIANOVA
educ BY race sex
/DESIGN = race sex race*sex .
UNIANOVA
educ BY race WITH sex
/DESIGN = race sex race*sex .
* Use Type I SS .
UNIANOVA
educ BY race sex
/METHOD = SSTYPE(1)
/DESIGN = race sex race*sex .
UNIANOVA
educ BY race WITH sex
/METHOD = SSTYPE(1)
/DESIGN = race sex race*sex .
The first two analyses use Type III SS, and give different F-tests for
the main effect of RACE. The F-tests for Sex and the interaction are
identical in the two models.
The last pair of analyses use Type I SS, and give identical F-tests for
all 3 terms.
Cheers,
Bruce
--
Bruce Weaver
bwe...@lakeheadu.ca
www.angelfire.com/wv/bwhomedir
SPSS has a an article by Dave Nichols on types of SS somewhere on their
site. But they have re-arranged the site & I don't have a link.
Art
Thom
I ask because I have to use gender as a covariate rather than fixed
factor (an SPSS bug - see post elsewhere) and someone suggested that
SPSS expects dichotomous categorical variables used as covariates to be
dummy coded. I could not see why SPSS would want this. What I am
hearing here is that the coding should make no difference whether used
as a dischotmous factor or covariate.
Art,
The articles of Dave Nichols can be found here:
ftp://ftp.spss.com/pub/spss/statistics/nichols
F. Thomas