Description Usage Arguments Details Value References
Estimate a multivariate generalised linear model for the joint incremental
costs and QALYs from a randomised trial (or other comparable data
source). Models can be estimated as a Multivariate Covariance
Generalized Linear Model (MCGLM; see
Bonat & J\/orgensen 2016), using the mcglm
package (Bonat 2018); a Multivariate Generalized Linear Mixed
Model (MGLMM) via Penalized Quasi-Likelihood
(Achana et al. 2021); or a Bayesian generalized multivariate
model, using the brms
package (B\/"urkner 2017, 2018).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
QALYs, costs, treatment |
Character strings naming the variables in
|
covars |
(optional) Character vector naming variables in |
data |
A data frame (or object coercible by
|
centre |
(optional) Character string naming a variable in |
cluster |
(optional) Character vector naming a variable in |
family |
(optional) A list of family functions specifying the
distribution and link function for each outcome variable. Each element
of the list should be a valid |
prior |
For |
method |
|
fixed |
An alternative way to specify the 'fixed effects' component of
the model. Required if the RHS variables should differ for each equation
or outcomes other than QALYs and Costs are to be estimated. If used,
should be a (optionally named) list of two-sided model formulae
specifying the equations for each outcome measure, and will override any
values specified in |
random |
(optional) Specification of the random effects component of
the model. Corresponds to the |
verbose |
Whether to print messages from the model fitting function
(default= |
control |
A list of arguments to be passed to the fitting algorithm
(argument |
... |
Further optional arguments to be passed to the underlying model
fitting function specified by |
The standard model specification provides QALYs
, costs
, treatment
, and
optionally covars
and centre
/cluster
, to estimate a bivariate
regression with common RHS variables and optional clustering by trial
centre or clustered randomisation.
If a different specification is required (e.g., estimating additional
outcomes beyond QALYs and Costs, or using different RHS variables in
each equation), a custom model specification can be passed to
fixed
as a list of formulae. In this case, family
should also
be used to specify the GLM 'family' for each outcome.
Note the following details for model specification for each method:
mcglm:
Model specification arguments linear_pred
, matrix_pred
,
link
, and variance
are constructed via the estimate()
arguments
QALYs
, costs
, treatment
, and covars
; centre
or
cluster
; and family
(for which see below), and should not be
passed directly. For custom model specifications, use the arguments
fixed
, random
, and family
.
Instead of a standard GLM family specification, family
can also
be provided as a list where each element (corresponding to each model
outcome) is a named list with elements "family" (a name for the custom
family), "link", "variance" (passed as the corresponding arguments to
mcglm
), and "power" (the (starting) power
parameter, currently only used for variance = "tweedie"
). For the
"tweedie" variance function, a power value 0 corresponds to a gaussian
distribution, 1 to the (quasi-)Poisson distribution, 2 to the gamma
distribution, and 3 to the inverse gaussian. (As in mcglm
, the dafault
is to fix the power parameter to its initial value.)
The control_initial
argument is derived by fitting separate GLM
models to each outcome variable (as in the mcglm
default) and cannot
be directly set by the user. The initial power parameter can be set via
family
as descried above.
mglmmPQL:
The lme
argument method
is renamed nlme_method
to avoid a
clash with the same-named argument to estimate
.
Formulae specified in random
or weights
(see below) can refer
to the reserved name outvar
, an indicator variable identifying the
outcome variable to which an observation belongs in the transformed
long-form (stacked) data used in the underlying lme
estimation.
By default, weights
is set to
nlme::varIdent(form = ~1 | outvar)
, to allow different variances for
each outcome variable. See varIdent
for details.
max_iter
can be used to specify the maximum number of PQL
iterations. Use
control =nlme::lmeControl(maxIter = <x>)
to set the maximum number of iterations for the lme
optimization
algorithm.
An object of class cea_estimate
inheriting from mcglm
.
Achana F, Gallacher D, Oppong R, et al. Multivariate generalized linear mixed-effects models for the analysis of clinical trial-based cost-effectiveness data. Med Decis Making 2021;41(6):667-84. https://doi.org/10.1177/0272989X211003880
Bonat WH. Multiple response variables regression models in R: The mcglm package. J Stat Soft 2018;84(4):1-30. https://doi.org/10.18637/jss.v084.i04
Bonat WH, Jørgensen B. Multivariate covariance generalized linear models. J Royal Stat Soc 2016;65:649-75. https://doi.org/10.1111/rssc.12145
Bürkner P-C. brms: An R package for Bayesian multilevel models using Stan. J Stat Soft 2017;80(1):1-28. https://doi.org/10.18637/jss.v080.i01
Bürkner P-C. Advanced Bayesian multilevel modeling with the R package brms. R Journal 2018;10(1):395-411. https://doi.org/10.32614/RJ-2018-017
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.