Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘’ 1 以上为第9章中的控制妊娠期时间相同时,观测四种药物剂量对鼠崽体重的影响问题,结果表明影响不太相同。 3.4 双因素方差分析 > fit <- aovp(len~supp*dose, data = ToothGrowth, perm = "Prob") [1] "Settings: unique ...
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘’ 1 #Tips:在公式里有一个lm()函数,它是一个线性模型函数(linear model),我们会在相关和回归里重点介绍它,这里只需要记住写法。同样,和t检验和wilcoxon检验一样这里,这里有“~”,而“~”之前的变量是数值变量,之后是分组变量。
# Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘’ 1 (标记显著性水平对应的符号) # # Residual standard error: 1.19 on 7 degrees of freedom(残差标准误与自由度) # Multiple R-squared: 0.6133, Adjusted R-squared: 0.558 (模型...
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘’ 1 #Tips:除了最后一行(对应变量tlc)之外,这里的F检验结果和summary函数输出的t检验结果几乎是完全相悖的。Age变量的检验结果变得显著了,导致这种结果的原因在于这里的检验过程是逐步进行的。 Anova表的输出结果表明在模型中已包含age...
# 多元方差分析 res.man <- manova(cbind(Sepal.Length, Petal.Length) ~ Species, data = iris) # 查看总体多元方差分析的结果 summary(res.man) Df Pillai approx F num Df den Df Pr(>F) Species 2 0.9885 71.829 4 294 < 2.2e-16 *** Residuals 147 --- Signif. codes: 0 '***' 0.001 ...
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘’ 1 由于P<0.05,于是在α=0.05水平下,本例的回归系数有统计学意义,身高和年龄存在直线回归关系。 同理,对于上例中的回归方程,我们对模型进行回归系数的t检验,t检验的R代...
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘’ 1 由于P<0.05,于是在α=0.05水平下,本例的回归系数有统计学意义,身高和年龄存在直线回归关系。 同理,对于上例中的回归方程,我们对模型进行回归系数的t检验,t检验的R代码如下: ...
004685 ** 无关3 4.05011 3.32796 1.217 0.225132 ---Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1Residual standard error: 48.55 on 188 degrees of freedomMultiple R-squared: 0.6077,Adjusted R-squared: 0.5847 F-statistic: 26...
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘’ 1 Residual standard error: 1.525 on 13 degrees of freedom Multiple R-squared: 0.991, Adjusted R-squared: 0.9903 F-statistic: 1433 on 1 and 13 DF, p-value: 1.091e-14 ...
summary(aov_data1) Df Sum Sq Mean Sq F value Pr(>F) A 4 1986 497 2.037 0.153021 B 3 12917 4306 17.661 0.000107 *** Residuals 12 2926 244 --- Signif. codes: 0‘***’ 0.001‘**’ 0.01‘*’ 0.05‘.’ 0.1‘’ 1 结果中B这行P值<0.0001,同时自动标注了显著程度,可见B因子之间在...