aovSphericityAdjustment | R Documentation |
Adjust ezANOVA table with corrections for sphericity (Greenhouse-Geisser or Huynh-Feldt). Called by default within aovTable
aovSphericityAdjustment(aovObj, type = "GG", adjDF = TRUE)
aovObj |
The returned object from a call to ezANOVA |
type |
"GG" (Greenhouse-Geisser) or "HF" (Huynh-Feldt) |
adjDF |
TRUE/FALSE Should DF's be adjusted? |
list
# Example 1: # create dataframe with 3(Comp: neutral vs. comp vs. incomp) factors/levels dat <- createDF(nVP = 20, nTrl = 1, design = list("Comp" = c("neutral", "comp", "incomp"))) dat <- addDataDF(dat, RT = list("Comp neutral" = c(510, 150, 100), "Comp comp" = c(500, 150, 100), "Comp incomp" = c(520, 150, 100))) # using ezANOVA library(ez) aovRT <- ezANOVA(dat, dv=.(RT), wid = .(VP), within = .(Comp), return_aov = TRUE, detailed = TRUE) aovDispTable(aovRT) aovRT <- aovSphericityAdjustment(aovRT) aovDispTable(aovRT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.