h******3 发帖数: 190 | 1 I realize the output is slightly different, if I use aov(data~as.factor(id))
, instead of aov(data~id). given that id is numeric.
Can someone tell me what is the difference? Is there any condition when we
want to use the second one? thanks! | l*********s 发帖数: 5409 | 2 in the first regression, id is categorical variable; in the second
regression, it is a numeric variable. You shall use the model appropriate to
the setting of the problems, obviously. |
|