compare_points: Function 'compare_points'

Description Usage Arguments Value

Description

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.

Usage

1

Arguments

chain

Chain object

points

either a Starts object or a named numeric vector with names in names(mcmc(chain)). Starts objects will be automatically flattened into named numeric vectors.

Value

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


wlandau/fbseqDebug documentation built on May 4, 2019, 8:44 a.m.