| brmsfit-class {brms} | R Documentation |
Class brmsfit of models fitted with the brms package
Description
Models fitted with the brms package are
represented as a brmsfit object, which contains the posterior
draws (samples), model formula, Stan code, relevant data, and other information.
Details
See methods(class = "brmsfit") for an overview of available methods.
Slots
formulaA
brmsformulaobject.dataA
data.framecontaining all variables used in the model.data2A
listof data objects which cannot be passed viadata.priorA
brmspriorobject containing information on the priors used in the model.stanvarsA
stanvarsobject.modelThe model code in Stan language.
ranefA
data.framecontaining the group-level structure.excludeThe names of the parameters for which draws are not saved.
algorithmThe name of the algorithm used to fit the model.
backendThe name of the backend used to fit the model.
threadsAn object of class 'brmsthreads' created by
threading.openclAn object of class 'brmsopencl' created by
opencl.stan_argsNamed list of additional control arguments that were passed to the Stan backend directly.
fitAn object of class
stanfitamong others containing the posterior draws.basisAn object that contains a small subset of the Stan data created at fitting time, which is needed to process new data correctly.
criteriaAn empty
listfor adding model fit criteria after estimation of the model.fileOptional name of a file in which the model object was stored in or loaded from.
versionThe versions of brms and rstan with which the model was fitted.
family(Deprecated) A
brmsfamilyobject.autocor(Deprecated) An
cor_brmsobject containing the autocorrelation structure if specified.cov_ranef(Deprecated) A
listof customized group-level covariance matrices.stan_funs(Deprecated) A character string of length one or
NULL.data.name(Deprecated) The name of
dataas specified by the user.
See Also
brms,
brm,
brmsformula,
brmsfamily