Learn R Programming

brms (version 2.9.0)

get_y: Extract response values

Description

Extract response values from a brmsfit object.

Usage

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

Arguments

x

A brmsfit object.

resp

Optional names of response variables for which to extract values.

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.