S3 methods for stanmvreg objects. There are also
several methods (listed in See Also, below) with their own
individual help pages.
The main difference between these methods and the
stanreg methods is that the methods described here
generally include an additional argument
m which allows the user to
specify which submodel they wish to return the result for. If the argument
m is set to
NULL then the result will generally be a named list
with each element of the list containing the result for one of the submodels.
# S3 method for stanmvreg coef(object, m = NULL, ...) # S3 method for stanmvreg fitted(object, m = NULL, ...) # S3 method for stanmvreg residuals(object, m = NULL, ...) # S3 method for stanmvreg se(object, m = NULL, ...) # S3 method for stanmvreg formula(x, fixed.only = FALSE, random.only = FALSE, m = NULL, ...) # S3 method for stanmvreg update(object, formula., ..., evaluate = TRUE) # S3 method for stanjm update(object, formulaLong., formulaEvent., ..., evaluate = TRUE) # S3 method for stanmvreg fixef(object, m = NULL, remove_stub = TRUE, ...) # S3 method for stanmvreg ngrps(object, ...) # S3 method for stanmvreg ranef(object, m = NULL, ...) # S3 method for stanmvreg sigma(object, m = NULL, ...)
A fitted model object returned by one of the
multivariate rstanarm modelling functions. See
Integer specifying the number or name of the submodel
Ignored, except by the
A logical specifying whether to only retain the fixed effect part of the longitudinal submodel formulas
A logical specifying whether to only retain the random effect part of the longitudinal submodel formulas
An updated formula for the model. For a multivariate model
An updated formula for the longitudinal
or event submodel, when
Logical specifying whether to remove the string identifying
the submodel (e.g.
Most of these methods are similar to the methods defined for objects of class 'lm', 'glm', 'glmer', etc. However there are a few exceptions:
Medians are used for point estimates. See the Point estimates section
print.stanmvreg for more details.
coef returns a list
equal to the length of the number of submodels. The first
elements of the list are the coefficients from each of the fitted longitudinal
submodels and are the same layout as those returned by
coef method of the
lme4 package, that is, the sum of the random and fixed effects coefficients
for each explanatory variable for each level of each grouping factor. The final
element of the returned list is a vector of fixed effect coefficients from the
Not supplied, since the
posterior_interval function should
be used instead to compute Bayesian uncertainty intervals.
Residuals are always of type
residuals or any other type).
plot method to plot estimates and
pp_check method for graphical posterior predictive
checking of the longitudinal or glmer submodels.
ps_check method for graphical posterior predictive
checking of the event submodel.
posterior_interval for uncertainty intervals for
as.array methods to access posterior draws.
posterior_interval for an alternative to
posterior_survfit for predictions based on the fitted joint model.