View source: R/inverse_forward_sampling.R
forward_sampling | R Documentation |
Simulate a new dataset using forward sampling.
forward_sampling(fit, i, n, ...)
fit |
An object of class brmsfit or a list of brmsfit objects. |
i |
The index of a single posterior draw to simulate a dataset for.
The index is passed to |
... |
Potential additional arguments. |
newdata |
A dataframe that is passed to posterior predict. |
A data.frame containing n observations for each variable in the fit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.