study_parameters
-objectCreate an lmer formula based on a study_parameters
-object
create_lmer_formula(object, ...)
A study_parameters
-object containing one study design
Unused, optional arguments.
A character
vector with lmer formula syntax.
The lme4 formula will correspond to the model implied by the specified parameters in
the study_parameters
-object. Thus, if e.g. cor_subject
is NA
or NULL
the
corresponding term is removed from the lmer formula. Parameters that are 0 are retained.
Currently only objects with one study design are supported, i.e. objects with class plcp
,
and not plcp_multi
; data.frame
with multiple designs are currently not supported.