as_mmrm_formula {rbmi}R 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

Character - The covariance structure to be used, must be one of "us", "toep", "cs", "ar1"

Details

outcome ~ 0 + V1 + V2 + V4 + ... + us(visit | group / subjid)

[Package rbmi version 1.2.6 Index]