Hi - a couple of people have asked about syntax to center a variable. Here it is - you're just creating a new centered variable by subtracting the mean - so that 0 is the mean for the centered variable. This makes interpreting the interaction effects easier (see posts on interactions below...).
-------------------------------------------------------------------------------
desc var=p1ageent .
EXECUTE .
***from the output from above, find the mean and plug it in here, in place of 65.93.
COMPUTE age_cent = p1ageent - 65.93 .
VARIABLE LABELS age_cent 'P1AGEENT centered around its mean' .
EXECUTE .
-------------------------------------------------------------------------------
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment