aovTidyTable: aovTidyTable

View source: R/anova.R

aovTidyTableR Documentation

aovTidyTable

Description

Take output from base aov function and produce a "tidy" ANOVA table similar to the output of ezANOVA. The output also contains the marginal means.

Usage

aovTidyTable(aovObj)

Arguments

aovObj

Output from aov function

Value

list

Examples

# create dataframe
dat <- createDF(nVP = 6, nTrl = 1,
                design = list("Comp" = c("comp", "incomp")))

dat <- addDataDF(dat, RT = list("Comp comp"   = c(500, 150, 100),
                                "Comp incomp" = c(520, 150, 100)))

aovObj <- aov(RT ~ Comp + Error(VP/(Comp)), dat)
aovObj <- aovTable(aovObj)
aovObj$ANOVA
printTable(aovObj$ANOVA)


psychReport documentation built on Sept. 9, 2022, 5:08 p.m.