用于非参数rmANOVA的ARTool R包:不打印平方和

用于非参数rmANOVA的ARTool R包:不打印平方和,r,R,我使用R软件包R工具对对齐秩转换数据进行方差分析(作为重复测量方差分析的非参数替代方法) 用于实际分析的代码运行良好。但默认情况下,ARTool不会打印平方和。我想用平方和来计算部分eta平方,作为效应大小的度量。根据这个vignette(),设置verbose=TRUE并将其传递给print()应该可以解决这个问题。然而,如果我像小插曲中描述的那样做,什么也不会发生。ARTool不会为我打印平方和。我不知道为什么 这是我运行的代码: #read the data table into vari

我使用R软件包R工具对对齐秩转换数据进行方差分析(作为重复测量方差分析的非参数替代方法)

用于实际分析的代码运行良好。但默认情况下,ARTool不会打印平方和。我想用平方和来计算部分eta平方,作为效应大小的度量。根据这个vignette(),设置verbose=TRUE并将其传递给print()应该可以解决这个问题。然而,如果我像小插曲中描述的那样做,什么也不会发生。ARTool不会为我打印平方和。我不知道为什么

这是我运行的代码:

#read the data table into variable 'df'

df <- read.csv("AuWM2_behav_basedOnEEGdata_Acc_ARTool.csv")

#convert factors into categorical variables

df$spdemand <- factor(df$spdemand)
df$load <- factor(df$load)


#load the ARTool library

library(ARTool)
library(dplyr)      
library(emmeans)    
library(DescTools) 
library(car)       
library(ggplot2)    


#perform the ART procedure on 'df'
#'df_Acc_long' is the name of the response column
#'spdemand' is the name of the first factor column
#'load' is the name of the second factor column
#'subject' is the name of the subjects column

m = art(df_Acc_long ~ spdemand * load + (1|subject), data=df)
anova(m)


#Note that for Fixed-effects-only models and repeated measures models (those with Error() terms) ARTool also collects the sums of squares, but does not print them by default. 
#We can pass verbose = TRUE to print() to print them

result = anova(m, verbose=TRUE)
print(result, verbose=TRUE)

result$part.eta.sq = with(result, `Sum Sq`/(`Sum Sq` + `Sum Sq.res`))
#将数据表读入变量'df'
嗨,劳拉,请在rstats上发推特。您应该使用
str(result)
查看结果对象上的内容,
Sum sq
仅在打印的
summary(result)
上可用。所以存储
sum\u结果