实验设计与分析(第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.

相关推荐
Tiger Z1 天前
《R for Data Science (2e)》免费中文翻译 (第17章) --- Dates and times(1)
r语言·编程·数据科学
杜子不疼.1 天前
计算机视觉热门模型手册:Faster R-CNN / YOLO / SAM 技术原理 + 应用场景对比
人工智能·计算机视觉·r语言·cnn
Davina_yu2 天前
Windows 下升级 R 语言至最新版
开发语言·windows·r语言
青春不败 177-3266-05202 天前
基于R语言生物信息学大数据分析与绘图技术应用
数据分析·r语言·生物信息·生信·高通量
Catherinemin2 天前
【R语言】2.注释&基础运算
开发语言·r语言
邢博士谈科教3 天前
TCGA单基因高低分组的差异分析后的GSEA-GO和KEGG富集分析教程
数据分析·r语言
Catherinemin3 天前
【R语言】1.安装&基础语法
开发语言·r语言
Tiger Z4 天前
R 语言科研绘图 --- 3D绘图-汇总1
r语言·论文·科研·绘图·研究生
kisshuan123964 天前
黄芪属植物物种识别与分类:基于 Faster R-CNN C4 模型的深度学习实现
深度学习·分类·r语言
闻缺陷则喜何志丹5 天前
【二分查找】P9822 [ICPC2020 Shanghai R] Walker【有误差】|普及
开发语言·算法·r语言