List,
I am trying to do (understand) 2 related things involving
dummy coded variables.
- When assessing a model with
functions such as lm or lme, SPLUS automatically creates dummy variables
when appropriate. How can you interpret these? That is, how do you know
what is the reference category and which of the new dummy variables are
related to which level of the original variable? Is it the case that the original
levels are alphabetically arranged and the first is the reference?
- For example, suppose original
variable is group (A, B, C, D) with 4 levels. Would the new dummy
variables be group1, group2, group3 where, group 1 is (B=1), group2 is
(C=1), group3 is (D=1).
- Suppose you want to create a
correlation matrix involving the new dummy codes from question one above.
Is there a built in function (i.e., something within ‘cor’) to
assist in this? Do you have to ‘manually’ create the new
dummies? I think this latter step shouldn’t be too difficult; I am
just struggling with trying to match up the regression results with the
correlation matrix I need to present.
Thanks
TF
-------------------------------------------------
University of Missouri - St.
Louis
-------------------------------------------------
|
|