Description Usage Arguments Value
Compare MCMC parameter samples of a single Chain
with a named vector of point estimates. This is useful, for example, in
simulation studies that begin with a set of "true" parameters. We can see if
our 95% credible intervals recapture the truth.
1 | compare_points(chain, points)
|
chain |
|
points |
either a |
A data frame with parameters as rows and the following columns.
pointsIn95ci
a matrix of logical values, each TRUE
if and only if the parameter's starting value lies within the 95-percent credible interval
estimated from the MCMC samples.
meansMinuspoints
mean of each parameter's MCMC samples (excluding burnin and thinning) minus that parameter's starting value.
mediansMinuspoints
The same as meansMinuspoints
, but with medians
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.