作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试为不平衡的单向 pwr
计算功率分析(使用 R
包中的 ANOVA
) .我不确定如何适本地加权平均或解释不平衡的设计。我目前有:
groups = 4
n = n
对于每组(此处,第 1 组的 n1=12,第 2 组的 n2=8,第 3 组的 n3=9,以及 n4=12)
between.var
和
within.var
由 ANOVA 分析可知:
(between.var=0.004363, within.var=0.003680)
最佳答案
此处描述了使用加权均值的方法:
https://www.r-bloggers.com/r-tutorial-series-two-way-anova-with-unequal-sample-sizes/
#read the dataset into an R variable using the read.csv(file) function
dataTwoWayUnequalSample <- read.csv(“dataset_ANOVA_TwoWayUnequalSample.csv”)
#display the data
dataTwoWayUnequalSample
#environment ANOVA
anova(lm(math ~ environment * instruction, dataTwoWayUnequalSample))
#instruction ANOVA
anova(lm(math ~ instruction * environment, dataTwoWayUnequalSample))
关于r - 不平衡单向方差分析的功效分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31362281/
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我是一名优秀的程序员,十分优秀!