Displaying 1 result from an estimated 1 matches for "hdanxinteract".
2010 Aug 03
1
releveling a numeric by factor interaction
...erence factor using relevel.
for example:
> summary(update(mod.mod, . ~ . - dummy +
+ relevel(dummy, ref="m")))
However, when I attempt to follow the same procedure to estimate the
reference factor interacted with a numeric predictor, I receive an error
message.
> summary(update(hdanxinteract.mod, . ~ . - numeric:dummy +
+ relevel(numeric:dummy, ref="m")))
Error in relevel.default(numeric:dummy, ref = "m") :
'relevel' only for factors
In addition: Warning messages:
1: In numeric:dummy :
numerical expression has 152 elements: only the first used
2: In num...