小编pc8*_*807的帖子

按组拟合线性模型/ ANOVA

我正试图anova()在R中运行并遇到一些困难.这就是我现在所做的,以帮助阐明我的问题.

这是str()我的数据到目前为止.

 str(mhw)
'data.frame':   500 obs. of  5 variables:
$ r    : int  1 2 3 4 5 6 7 8 9 10 ...
$ c    : int  1 1 1 1 1 1 1 1 1 1 ...
$ grain: num  3.63 4.07 4.51 3.9 3.63 3.16 3.18 3.42 3.97 3.4 ...
$ straw: num  6.37 6.24 7.05 6.91 5.93 5.59 5.32 5.52 6.03 5.66 ...
$ Quad : Factor w/ 4 levels "NE","NW","SE",..: 2 …
Run Code Online (Sandbox Code Playgroud)

regression r linear-regression anova lm

2
推荐指数
1
解决办法
168
查看次数

标签 统计

anova ×1

linear-regression ×1

lm ×1

r ×1

regression ×1