Usage
## S3 method for class 'brmsfit':
fitted(object, newdata = NULL, re_formula = NULL,
scale = c("response", "linear"), allow_new_levels = FALSE,
summary = TRUE, probs = c(0.025, 0.975), ...)
Arguments
object
An object of class brmsfit
newdata
An optional data.frame containing new data to make predictions for.
If NULL
(default), the data used to fit the model is applied.
re_formula
formula containing random effects to be considered in the prediction.
If NULL
(default), include all random effects; if NA
, include no random effects.
Other options will be implemented in the future.
scale
Either "response"
or "linear"
. If scale = "response"
results are returned
on the scale of the response variable. If scale = "linear"
fitted values are returned on the scale of the linear predictor.
allow_new_levels
Currenly, FALSE
(no new levels allowed) is the only option. This will change in
future versions of the package.
summary
logical. Should summary statistics (i.e. means, sds, and 95% intervals) be returned
instead of the raw values. Default is TRUE
probs
The percentiles to be computed by the quantile
function.
Only used if summary
is TRUE
.