混合效应模型的 Cohen d
Cohen d for mixed effects model
有人使用过 powellmm 包吗?
我想使用 study_parameters 命令计算模型的统计功效。它采用多个值作为输入,其中之一是 Cohen 的 d。
如何确定我的模型的 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)
关于这项研究的一些细节:
- 2 组:治疗组和对照组
- 6 个时间点
- n(对照)=27,n(处理)=55
提前感谢您的回答。
您可以从函数的输出中得到 Cohens d。我看到您在代码中犯了一个小错误。删除 cohend(.05
之后的“)
”,它起作用了。
根据定义,您对固定效应的效应大小感兴趣。
希望对你有用。
有人使用过 powellmm 包吗? 我想使用 study_parameters 命令计算模型的统计功效。它采用多个值作为输入,其中之一是 Cohen 的 d。
如何确定我的模型的 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)
关于这项研究的一些细节:
- 2 组:治疗组和对照组
- 6 个时间点
- n(对照)=27,n(处理)=55
提前感谢您的回答。
您可以从函数的输出中得到 Cohens d。我看到您在代码中犯了一个小错误。删除
cohend(.05
之后的“)
”,它起作用了。根据定义,您对固定效应的效应大小感兴趣。
希望对你有用。