x******m 发帖数: 736 | 1 为什么这两个结果会不一样?
aov(lm(pressure ~ group))
aov(lm(pressure ~ as.factor(group)) |
c*****m 发帖数: 4817 | 2 why do you think they should be the same? one is numeric, the other is
factor/categorical variable. the results should be different unless group
only has two values: 0 and 1.
【在 x******m 的大作中提到】 : 为什么这两个结果会不一样? : aov(lm(pressure ~ group)) : aov(lm(pressure ~ as.factor(group))
|
x******m 发帖数: 736 | 3 i understand a little. could you what's meaning of doing the first one?
usually we want to compare means of different groups, like the second one.
thanks
【在 c*****m 的大作中提到】 : why do you think they should be the same? one is numeric, the other is : factor/categorical variable. the results should be different unless group : only has two values: 0 and 1.
|
c*****m 发帖数: 4817 | 4 比较组间difference应该是第二个了,当然如果group本来就是个factor,那这两个就
没区别。
如果group是个numeric的variable,就Model1就是线性关系啊
one.
【在 x******m 的大作中提到】 : i understand a little. could you what's meaning of doing the first one? : usually we want to compare means of different groups, like the second one. : thanks
|
x******m 发帖数: 736 | |
z**k 发帖数: 378 | |
x******m 发帖数: 736 | 7 别这样,该看的书夺得去了。
你来说说为什么linear model前面为什么还加一个aov?
【在 z**k 的大作中提到】 : 把linear model的基础补一补吧
|
l*********s 发帖数: 5409 | 8 aov merely extracts ANOVA table from the lm object. Purely for cosmetic
purpose.
【在 x******m 的大作中提到】 : 别这样,该看的书夺得去了。 : 你来说说为什么linear model前面为什么还加一个aov?
|