由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - R anova一问
相关主题
linear regression 中的categorical data问一个关于linear regression的问题,大家不要笑我。
关于R里的ANOVA function aovregression里面indep var如果是categorical,做dummy var和不做dummy有何区别?
proc GLM和proc Reg、proc Genmod的比较统计菜鸟请教问题:关于linear regression
一个covariance的问题面试问题,大家看看我回答的靠谱么
ask for help有人熟悉hierarchical linear model吗?
我也来贡献一本书Categorical Analysis - 2x3 Table 中能否进行两两比较
请教ANOVA for binary data发包子求教,如何走好统计这条路
菜鸟请教一个问题这个是ANOVA的问题吗?
相关话题的讨论汇总
话题: aov话题: anova话题: group话题: lm话题: 一问
进入Statistics版参与讨论
1 (共1页)
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
5
那在线性回归前面再来个anova是什么意思?
z**k
发帖数: 378
6
把linear model的基础补一补吧
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?

1 (共1页)
进入Statistics版参与讨论
相关主题
这个是ANOVA的问题吗?ask for help
讨论一下,非独立sample的显著性比较我也来贡献一本书
大家做model的时候, 都detect interaction吗请教ANOVA for binary data
攒人品,发Google Statistician/Data Scientist电面面经菜鸟请教一个问题
linear regression 中的categorical data问一个关于linear regression的问题,大家不要笑我。
关于R里的ANOVA function aovregression里面indep var如果是categorical,做dummy var和不做dummy有何区别?
proc GLM和proc Reg、proc Genmod的比较统计菜鸟请教问题:关于linear regression
一个covariance的问题面试问题,大家看看我回答的靠谱么
相关话题的讨论汇总
话题: aov话题: anova话题: group话题: lm话题: 一问