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

相关推荐
weixin_462446232 小时前
PaddleX 3.2 人脸识别实战:自定义人脸库 + CartoonFace 官方案例 Top-K 识别完整指南
开发语言·r语言
Tiger Z3 小时前
《R for Data Science (2e)》免费中文翻译 (第19章) --- Joins(1)
r语言·编程·数据科学
Tiger Z4 小时前
《R for Data Science (2e)》免费中文翻译 (第18章) --- Missing values
开发语言·r语言
带我去滑雪6 小时前
R语言抑郁症状网络分析
r语言
AC赳赳老秦8 小时前
R语言数据分析:DeepSeek辅助生成统计建模代码与可视化图表
开发语言·人工智能·jmeter·数据挖掘·数据分析·r语言·deepseek
czliutz4 天前
R语言gm玩音乐示例代码Rmarkdown
开发语言·r语言
LASDAaaa12315 天前
【计算机视觉】基于Mask R-CNN的自动扶梯缺陷检测方法实现
计算机视觉·r语言·cnn
没有梦想的咸鱼185-1037-16635 天前
AI大模型支持下的:R-Meta分析核心技术:从热点挖掘到高级模型、助力高效科研与论文发表
开发语言·人工智能·机器学习·chatgpt·数据分析·r语言·ai写作
2501_941333105 天前
表格结构识别与内容解析——基于Cascade R-CNN的表格行、列、单元格自动检测与分类_1
分类·r语言·cnn
云州牧5 天前
Mastering Shiny 08 User feedback
r语言