brmsfit
objectsExtract all data that was used by Stan to fit a brms model.
# S3 method for brmsfit
standata(
object,
newdata = NULL,
re_formula = NULL,
newdata2 = NULL,
new_objects = NULL,
incl_autocor = TRUE,
...
)
A named list containing the data passed to Stan.
An object of class brmsfit
.
An optional data.frame for which to evaluate predictions. If
NULL
(default), the original data of the model is used. NA
values within factors (excluding grouping variables) are interpreted as if
all dummy variables of this factor are zero. This allows, for instance, to
make predictions of the grand mean when using sum coding. NA
values
within grouping variables are treated as a new level.
formula containing group-level effects to be considered in
the prediction. If NULL
(default), include all group-level effects;
if NA
or ~0
, include no group-level effects.
A named list
of objects containing new data, which
cannot be passed via argument newdata
. Required for some objects
used in autocorrelation structures, or stanvars
.
Deprecated alias of newdata2
.
A flag indicating if correlation structures originally
specified via autocor
should be included in the predictions.
Defaults to TRUE
.
More arguments passed to
standata.default
.
and validate_newdata
.