Learn R Programming

powerlmm (version 0.4.0)

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

Description

Create an lmer formula based on a study_parameters-object

Usage

create_lmer_formula(object, ...)

Arguments

object

A study_parameters-object containing one study design

...

Unused, optional arguments.

Value

A character vector with lmer formula syntax.

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.