Description Usage Arguments Details Author(s)
Simulates posterior observations for map
and map2stan
model fits.
1 2 |
N |
Number of cases in simulated data |
k |
Number of parameters in model to fit to data |
rho |
Vector of correlations between predictors and outcome, in simulated data |
b_sigma |
Standard deviation of beta-coefficient priors |
DIC |
If |
WAIC |
If |
devbar |
If |
devbarout |
If |
This function simulates Gaussian data and then fits linear regression models to it, returning the deviance of the fit (training, in-sample) and the deviance on a new sample, computed using the MAP estimates from the training sample.
Richard McElreath
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.