- object
An object of class brmsfit
.
- newdata
An optional data.frame for which to evaluate predictions. If
NULL
(default), the original data of the model is used.
NA
values within factors 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.
- resp
Optional names of response variables. If specified, predictions
are performed only for the specified response variables.
- cvfun
Optional cross-validation function
(see get_refmodel
for details).
If NULL
(the default), cvfun
is defined internally
based on kfold.brmsfit
.
- dis
Passed to argument dis
of
init_refmodel
, but leave this at
NULL
unless projpred complains about it.
- latent
See argument latent
of
extend_family
. Setting this to
TRUE
requires a projpred version >= 2.4.0.
- brms_seed
A seed used to infer seeds for kfold.brmsfit
and for sampling group-level effects for new levels (in multilevel models).
- ...
Further arguments passed to
init_refmodel
.