Extract response values from a brmsfit
object.
get_y(x, resp = NULL, sort = FALSE, warn = FALSE, ...)
Returns a vector of response values for univariate models and a matrix of response values with one column per response variable for multivariate models.
A brmsfit
object.
Optional names of response variables for which to extract values.
Logical. Only relevant for time series models.
Indicating whether to return predicted values in the original
order (FALSE
; default) or in the order of the
time series (TRUE
).
For internal use only.
Further arguments passed to standata
.