brmsfit-class:
Class brmsfit of fitted mixed-effect models
Description
Models fitted with the brms package are represented as a brmsfit object, which contains the posterior samples, the model code, the relevant data, the model formula, and some other useful information.
Slots
formula:- model formula; an object of class
formula family:- model family; an object of class
family link:- link function; a character string (deprecated)
data.name:- name of the data frame; a character string
data:- model.frame containing all variables used in the model
model:- model in Stan language; a character string
exclude:- parameters for which samples are not saved;
a character vector
prior:- priors applied in the model; a matrix
ranef:- random effects structure; a named list
autocor:- an object of class
cor_brms
containing the autocorrelation structure partial:- formula of the category specific effects
applied in ordinal models
cov_ranef:- a list of customized random effects
covariance matrices
fit:- fitted results including the posterior samples;
an object of class
stanfit algorithm:- the name of the algorithm used to fit the model
Details
Currently, the following S3 methods are available for class brmsfit:
as.mcmc,
coef,
family,
fitted,
fixef,
formula,
hypothesis,
launch_shiny,
logLik,
LOO,
marginal_effects,
model.frame,
ngrps,
nobs,
pairs,
parnames,
plot,
posterior_samples,
predict,
print,
prior_samples,
ranef,
residuals,
stancode,
standata,
stanplot,
summary,
update,
VarCorr,
vcov,
WAIC.
brmsfit objects do not have their own tidy method yet,
but you may use broom::tidyMCMC($fit) to
apply the tidy method for stanfit objects.