有人使用过 powerlmm 软件包吗? 我想使用study_parameters命令为我的模型计算统计功效。它使用多个值作为输入,其中之一是Cohen的d。
如何确定模型的Cohen d?另外,对于固定模型,随机模型还是整个模型,我应该确切指定哪种效果?
p <- study_parameters(n1 = 6,
n2 = per_treatment(control=27, treatment=55),
sigma_subject_intercept = 4.56,
sigma_subject_slope = 0.22,
sigma_error = 5.39,
cor_subject = -0.19,
dropout = dropout_manual(0.0000000, 0.2666667, 0.3466667, 0.4666667, 0.47, 0.7333333),
effect_size = cohend(0.5),
standardizer = "posttest_SD"))
get_power(p)
有关这项研究的一些细节:
预先感谢您的回答。
答案 0 :(得分:0)
您可以从函数的输出中获取Cohens d。我看到您在代码中犯了一个小错误。删除)
之后的“ cohend(.05
”,它可以正常工作。
根据定义,您对固定效果的效果大小感兴趣。
希望它对您有用。