简体   繁体   English

导出 lme4 方差分析结果的 APA 格式表

[英]Export APA format table of lme4 anova results

I ran this MLM model我跑了这个传销 model

model1.a <- lmer(log10_number_of_sensations ~  Tone*Location + Tone*Intensity 
           +(1+Tone+Intensity|Subject), 
           neutralBlock_data,REML=TRUE) 

and I used "lmertest" to get the repeated measure anova table:我用“lmertest”得到重复测量方差分析表:

a1.a = anova(model1.a, ddf="Kenward-Roger") 

How can I save the RM ANOVA table in APA style?如何以 APA 样式保存 RM ANOVA 表?

I tried to use the following packages:我尝试使用以下软件包:

flextable(stats.table <- as.data.frame(report(a1.a))) flextable(stats.table <- as.data.frame(报告(a1.a))) 在此处输入图像描述 But I wander I can I present the P value但我徘徊 我可以展示 P 值吗

as it was here:就像这里一样: 在此处输入图像描述

thank you very much非常感谢你

Install the apaTables package.安装apaTables package。
https://cran.r-project.org/web/packages/apaTables/apaTables.pdf https://cran.r-project.org/web/packages/apaTables/apaTables.pdf

Maybe try:也许尝试:

mytab <- apa.aov.table(model1.a) 
print(mytab) 

There are a variety of table options in that package for different models.那个 package 里面有多种表选项,适用于不同的型号。

Here are some other options for multilevel models https://www.anthonyschmidt.co/post/2020-09-06-table-options-mlm/以下是多级模型的一些其他选项https://www.anthonyschmidt.co/post/2020-09-06-table-options-mlm/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM