Highlights and test the time-course of effects through mixed-effects models
Source:R/lmem_test.R
lmem_test.Rd
This function performs (g)lmer for each timepoint. Data are first separated for each time-point, and a LMEM as specified by the 'formula' parameter, which is passed to 'lmerTest::lmer', is performed. The function returns t/z values, p values, and corrected p values.
Arguments
- data
A data.frame containing all the necessary variables.
- formula
A 'lme4'-style formula, passed as a string.
- time
A string indicating the name of the time variable.
- family
A string indicating a GLM family to be passed to (g)lmer.
- correction
A string indicating the method for correcting p values (see p.adjust). defaults to "fdr".
- ...
Other pars passed to (g)lmer.