repeated_measures_anova: Repeated-Measures ANVOA

View source: R/repeated_measures_anova.R

repeated_measures_anovaR Documentation

Repeated-Measures ANVOA

Description

Conduct a repeated-measures analysis of variance (ANOVA). This analysis will be appropriate for within-subjects experimental design.

Usage

repeated_measures_anova(
  data = NULL,
  p_col_name = NULL,
  measure_vars = NULL,
  histograms = TRUE,
  round_w = 2,
  round_epsilon = 2,
  round_df_model = 2,
  round_df_error = 2,
  round_f = 2,
  round_ges = 2
)

Arguments

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)

kim documentation built on Oct. 9, 2023, 5:08 p.m.