create_lmer_formula: Create an lmer formula based on a 'study_parameters'-object

Description Usage Arguments Details Value

Description

Create an lmer formula based on a study_parameters-object

Usage

1

Arguments

object

A study_parameters-object containing one study design

...

Unused, optional arguments.

Details

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.

Value

A character vector with lmer formula syntax.


powerlmm documentation built on May 2, 2019, 3:10 a.m.