Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_y

Extract response values


Description

Extract response values from a brmsfit object.

Usage

get_y(x, resp = NULL, sort = FALSE, warn = FALSE, ...)

Arguments

x

A brmsfit object.

resp

Optional names of response variables for which to extract values.

sort

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).

warn

For internal use only.

...

Further arguments passed to standata.

Value

Returns a vector of response values for univariate models and a matrix of response values with one column per response variable for multivariate models.


brms

Bayesian Regression Models using 'Stan'

v2.15.0
GPL-2
Authors
Paul-Christian Bürkner [aut, cre], Jonah Gabry [ctb], Sebastian Weber [ctb], Andrew Johnson [ctb], Martin Modrak [ctb]
Initial release
2021-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.