om_lmer: Run mixed models (with interactions)

Description Usage Arguments

View source: R/analysis.R

Description

This function performs a mixed model and gives back some neat info

Usage

1
om_lmer(mod, type = "int", mod_transform = "minmax")

Arguments

mod

a fitted model

type

what kind of model (currently only accepts "int" for interactions)

mod_transform

Indicates which values of the moderator variable should be used when plotting interaction terms (i.e. type = "int").

"minmax"

(default) minimum and maximum values (lower and upper bounds) of the moderator are used to plot the interaction between independent variable and moderator(s).

"meansd"

uses the mean value of the moderator as well as one standard deviation below and above mean value to plot the effect of the moderator on the independent variable (following the convention suggested by Cohen and Cohen and popularized by Aiken and West (1991), i.e. using the mean, the value one standard deviation above, and the value one standard deviation below the mean as values of the moderator, see Grace-Martin K: 3 Tips to Make Interpreting Moderation Effects Easier).

"zeromax"

is similar to the "minmax" option, however, 0 is always used as minimum value for the moderator. This may be useful for predictors that don't have an empirical zero-value, but absence of moderation should be simulated by using 0 as minimum.

"quart"

calculates and uses the quartiles (lower, median and upper) of the moderator value.

"all"

uses all values of the moderator variable.


openmindplatform/openmindR documentation built on Nov. 13, 2021, 2:13 p.m.