Skip to contents

Processing the Formula for TMB Fit

Usage

h_mmrm_tmb_formula_parts(formula)

Arguments

formula

(formula)
original formula.

Value

List of class mmrm_tmb_formula_parts with elements:

  • formula: the original input.

  • model_formula: formula with the covariance term is removed.

  • full_formula: same as model_formula but includes the subject_var and visit_var.

  • cov_type: string with covariance term type (e.g. "us").

  • is_spatial: flag indicator of whether the covariance structure is spatial

  • visit_var: character with the visit variable name.

  • subject_var: string with the subject variable name.

  • group_var: string with the group variable name. If no group specified, this element is NULL.