实验设计与分析(第6版,Montgomery)第4章随机化区组,拉丁方, 及有关设计4.5节思考题4.1~4.4 R语言解题

本文是实验设计与分析(第6版,Montgomery著,傅珏生译) 第章随机化区组,拉丁方, 及有关设计4.5节思考题4.1~4.4 R语言解题。主要涉及方差分析,随机化区组。

chemical<-data.frame(

X=c(73,68,74,71,67,73,67,75,72,70,75,68,78,73,68,73,71,75,75,69),

A = gl(4,5,20), #注释1 主因子chemical types

B = gl(5,1,20)) #区组

chemical.aov<-aov(X~A+B, data= chemical)

summary(chemical.aov)

> summary(chemical.aov)

Df Sum Sq Mean Sq F value Pr(>F)

A 3 12.95 4.32 2.376 0.121

B 4 157.00 39.25 21.606 2.06e-05 ***

Residuals 12 21.80 1.82


Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

There is no difference among the chemical types at α = 0.05 level.

baterial<-data.frame(X=c(13,22,18,39,16,24,17,44,5,4,1,22),

A = gl(3,4,12), #注释1 主因子chemical types

B = gl(4,1,12)) #区组

baterial.aov<-aov(X~A+B, data= baterial)

summary(baterial.aov)

> summary(baterial.aov)

Df Sum Sq Mean Sq F value Pr(>F)

A 2 703.5 351.8 40.72 0.000323 ***

B 3 1106.9 369.0 42.71 0.000192 ***

Residuals 6 51.8 8.6


Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

There is a difference between the means of the three solutions. The Fisher LSD procedure indicates that solution 3 is significantly different than the other two.

相关推荐
全栈开发圈3 天前
干货分享|如何从0到1掌握R语言数据分析
开发语言·数据分析·r语言
小杜的生信筆記6 天前
基于R语言,“上百种机器学习模型”学习教程 | Mime包
开发语言·学习·机器学习·r语言·sci
在打豆豆的小潘学长6 天前
【R语言】多样本单细胞分析_SCTransform+Harmony方案(2)
开发语言·r语言
TS的美梦6 天前
ROGUE: 【张院士团队R包】一种基于熵的用于评估单细胞群体纯度的度量标准
开发语言·r语言
weixin_493202638 天前
R语言代码加密(1)
r语言
Tiger Z8 天前
《R for Data Science (2e)》免费中文翻译 (第3章) --- Data transformation(2)
r语言·数据科学·中文翻译
星石传说10 天前
使用R将nc文件转换为asc文件或者tif文件
r语言·生信
Mister Leon11 天前
机器学习Adaboost算法----SAMME算法和SAMME.R算法
算法·机器学习·r语言
Tiger Z12 天前
R 语言科研绘图第 67 期 --- 箱线图-显著性
r语言·论文·科研·绘图·研究生
惊岁晚12 天前
【实践记录】github仓库的更新
算法·容器·r语言·github