sphericityValueString | R Documentation |
Returns required Latex formatted string for sphericity epsilon values (HF, GG) = XXX for R/knitr integration. Returns values to 2 sig decimal places.
sphericityValueString(aovObj, effect)
aovObj |
The returned object from a call to ezANOVA |
effect |
The effect within the ANOVA table to return |
character
# Example 1 # create dataframe and add data with 3(Comp: neutral vs. comp vs. incomp) 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))) # repeated measures ANOVA using ezANOVA library(ez) aovRT <- ezANOVA(dat, dv=.(RT), wid = .(VP), within = .(Comp), return_aov = TRUE, detailed = TRUE) aovRT <- aovTable(aovRT) sphericityValue <- sphericityValueString(aovRT, "Comp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.