Skip to contents

Linear mixed effects models with repeated measures

Usage

mixedmodelanova(
  data,
  dependent,
  fixed_factors,
  random_factors,
  covariates,
  model_type = "random_intercept",
  interaction_terms = FALSE,
  estimation_method = "reml",
  show_fixed_effects = TRUE,
  show_random_effects = TRUE,
  show_model_fit = TRUE,
  show_assumptions = TRUE,
  show_posthoc = FALSE,
  posthoc_method = "tukey",
  confidence_level = 0.95,
  show_effect_sizes = TRUE,
  show_icc = TRUE,
  show_plots = TRUE,
  show_methodology = FALSE,
  show_references = FALSE
)

mixedmodelanova(
  data,
  dependent,
  fixed_factors,
  random_factors,
  covariates,
  model_type = "random_intercept",
  interaction_terms = FALSE,
  estimation_method = "reml",
  show_fixed_effects = TRUE,
  show_random_effects = TRUE,
  show_model_fit = TRUE,
  show_assumptions = TRUE,
  show_posthoc = FALSE,
  posthoc_method = "tukey",
  confidence_level = 0.95,
  show_effect_sizes = TRUE,
  show_icc = TRUE,
  show_plots = TRUE,
  show_methodology = FALSE,
  show_references = FALSE
)

Arguments

data

.

dependent

.

fixed_factors

.

random_factors

.

covariates

.

model_type

.

interaction_terms

.

estimation_method

.

show_fixed_effects

.

show_random_effects

.

show_model_fit

.

show_assumptions

.

show_posthoc

.

posthoc_method

.

confidence_level

.

show_effect_sizes

.

show_icc

.

show_plots

.

show_methodology

.

show_references

.

...

additional arguments

Value

A results object containing tables and plots

A results object containing:

results$model_infoa table
results$fixed_effectsa table
results$anova_tablea table
results$random_effectsa table
results$model_fita table
results$icc_tablea table
results$effect_sizesa table
results$posthoca table
results$assumptionsa table
results$diagnostic_plotsan image
results$interpretationa html
results$methodologya html
results$referencesa html

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$model_info$asDF

as.data.frame(results$model_info)

Examples

data('sleep', package='lme4')
#> Warning: data set ‘sleep’ not found
mixedmodelanova(data = sleep, dependent = Reaction,
                random_factors = Subject)
#> Error in mixedmodelanova(data = sleep, dependent = Reaction, random_factors = Subject): argument "fixed_factors" is missing, with no default