powered by
This builds the model formula which is used inside fit_mmrm_j() and provided to mmrm::mmrm() internally. It can be instructive to look at the resulting formula directly sometimes.
fit_mmrm_j()
mmrm::mmrm()
build_formula( vars, cor_struct = c("unstructured", "toeplitz", "heterogeneous toeplitz", "ante-dependence", "heterogeneous ante-dependence", "auto-regressive", "heterogeneous auto-regressive", "compound symmetry", "heterogeneous compound symmetry") )
Formula to use in mmrm::mmrm().
(list) variables to use in the model.
list
(string) specify the covariance structure to use.
string
vars <- list( response = "AVAL", covariates = c("RACE", "SEX"), id = "USUBJID", arm = "ARMCD", visit = "AVISIT" ) build_formula(vars, "auto-regressive") build_formula(vars)
Run the code above in your browser using DataLab