brms_sampler | R Documentation |
This samples from the posterior predictive for each component in a multiresponse Bayesian Regression model.
brms_sampler(fits, newdata = NULL, indices = NULL, ...)
fits |
The fitted 'BRMS' model model from which to draw samples. |
newdata |
A data.frame containing new inputs from which to sample responses. If NULL, defaults to the data used to estimate fit. |
indices |
The coordinates of the response from which we want to sample. |
... |
Additional arguments to pass to |
A data.frame containing a single posterior predictive sample at each of the newdata rows passed into a fitted BRMS model. Each column corresponds to one outcome variable, each row to the associated row in the newdata input..
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.