Usage
get_mmrm_lsmeans(fit, vars, conf_level, weights, averages = list())
Arguments
- fit
(
mmrm
)
result ofmmrm::mmrm()
.- vars
-
(named
list
ofstring
orcharacter
)
specifying the variables in theMMRM
. The following elements need to be included as character vectors and match corresponding columns indata
:response
: the response variable.covariates
: the additional covariate terms (might also include interactions).id
: the subject ID variable.arm
: the treatment group variable (factor).visit
: the visit variable (factor).weights
: optional weights variable (ifNULL
or omitted then no weights will be used).
Note that the main effects and interaction of
arm
andvisit
are by default included in the model. - conf_level
(
proportion
)
confidence level of the interval.- weights
(
string
)
type of weights to be used for the least square means, seeemmeans::emmeans()
for details.- averages
(
list
)
named list of visit levels which should be averaged and reported along side the single visits.