data: a data object (a data frame or a data.table)
p_col_name: name of the column identifying participants
measure_vars: names of the columns containing repeated measures (within-subjects variables)
histograms: logical. If histograms = TRUE, histograms of the repeated measures will be plotted. If histograms = FALSE, no histograms will be plotted.
round_w: number of decimal places to which to round W statistic from Mauchly's test (default = 2)
round_epsilon: number of decimal places to which to round the epsilon statistic from Greenhouse-Geisser or Huynh-Feldt correction (default = 2)
round_df_model: number of decimal places to which to round the corrected degrees of freedom for model (default = 2)
round_df_error: number of decimal places to which to round the corrected degrees of freedom for error (default = 2)
round_f: number of decimal places to which to round the F statistic (default = 2)
round_ges: number of decimal places to which to round generalized eta-squared (default = 2)
Details
The following package(s) must be installed prior to running the function: Package 'ez' v4.4-0 (or possibly a higher version) by Michael A Lawrence (2016), https://cran.r-project.org/package=ez
Examples
## Not run:repeated_measures_anova( data = mtcars, p_col_name ="cyl", measure_vars = c("wt","qsec"))## End(Not run)