Fit and compare linear mixed-effects models and calculate effect sizes.

lmer_anv_p_and_d(
  data,
  outcome,
  predictor,
  fixed_effects,
  random_effects,
  predictoroperator = "*",
  verbose = FALSE
)

Arguments

data

A data frame containing the data.

outcome

A character string specifying the outcome variable.

predictor

A character string specifying the main predictor of interest.

fixed_effects

A character string of other fixed effects.

random_effects

A character string specifying the random effects structure (e.g., "(1 | commonID)").

predictoroperator

A character string for the operator between fixed effects and the predictor (e.g., '*' or '+').

verbose

A logical indicating whether to print debugging information.

Value

A list containing the model, comparison, effect sizes, coefficients, and sample size, or NULL on error.