as_mmrm_formula: Create MMRM formula

View source: R/mmrm.R

as_mmrm_formulaR Documentation

Create MMRM formula

Description

Derives the MMRM model formula from the structure of mmrm_df. returns a formula object of the form:

Usage

as_mmrm_formula(mmrm_df, cov_struct)

Arguments

mmrm_df

an mmrm data.frame as created by as_mmrm_df()

cov_struct

a character value. Specifies which covariance structure to use. Must be one of "us", "toep", "cs" or "ar1"

Details

outcome ~ 0 + V1 + V2 + V4 + ... + us(0 + group1:visit | subjid) + us(0 + group2:visit | subjid) + ...

rbmi documentation built on May 18, 2022, 5:08 p.m.