r - R:事后测试嵌套方差分析
问题描述
我为我的数据做了一个嵌套方差分析。为此,我尝试定位此页面上的示例:
https://rcompanion.org/rcompanion/d_07.html
我的数据如下所示:
Treatment Group Donation
1 1 0
1 1 1.2
1 2 0.3
1 2 0.7
2 1 0.1
2 1 1
2 2 0
2 2 0.7
我能够按照页面上的描述执行嵌套方差分析,但很难完成事后测试:
library(multcomp)
posthoc = glht(model,
linfct = mcp(Treatment="Tukey"))
mcs = summary(posthoc,
test=adjusted("single-step"))
mcs
这是我得到的输出:
> library(multcomp)
> posthoc = glht(model,
+ linfct = mcp(Treatment="Tukey"))
Error in `[.data.frame`(mf, nhypo[checknm]) : undefined columns selected
> mcs = summary(posthoc,
+ test=adjusted("single-step"))
Error in summary(posthoc, test = adjusted("single-step")) :
object 'posthoc' not found
> mcs
Error: object 'mcs' not found
解决方案
推荐阅读
- java - 执行 Selenium 测试用例时出现空指针异常错误
- sql-server - 如何替换 #(lf) 并更改为换行符?
- java - 使用流的返工方法
- html - 显示未在单行中正确显示
- database - 当我尝试使用颤振将图像上传到strapi时出现错误
- html - 如何使通知不扩展到正确的引导程序?
- android - 在多行上将字段共享到文本/电子邮件/注释
- next.js - 使用 NextJS、next-connect 和 passport 时的套接字挂断
- php - 如何使用相同的正则表达式匹配两行?
- php - 自 axios 和 vue 以来在 PHP 中使用文件和 json 数据读取 FormData 的问题