Processing the Formula for TMB Fit
Usage
h_mmrm_tmb_formula_parts(
formula,
covariance = as.cov_struct(formula, warn_partial = FALSE)
)Value
List of class mmrm_tmb_formula_parts with elements:
formula: the original input.model_formula:formulawith the covariance term is removed.model_formula:formulawith the covariance term removed.full_formula: same asmodel_formulabut includes the covariance structure's subject, visit and (optionally) group variables.cov_type:stringwith covariance term type (e.g."us").is_spatial:flagindicator of whether the covariance structure is spatialvisit_var:characterwith the visit variable name.subject_var:stringwith the subject variable name.group_var:stringwith the group variable name. If no group specified, this element isNULL.model_var:characterwith the variables names of the formula, exceptsubject_var.response_var:stringwith the response variable name.