makeStats {rube}R Documentation

Compute new statistics for a new sims.array.

Description

Compute summary, mean, sd, median, and MCMCerr for a new sims.array. This is used for updating chain statistics after thinning, merging, adding new parameters, etc.

Usage

makeStats(simsArr)

Arguments

simsArr

The sims.array component of a bugs object

Details

This can be used to re-compute the chain statistics when the chain is modified. Currently MCMCerr and n.eff do not match what R2WinBUGS computes, even though the computations are done by coda::summary and coda::effectiveSize.

Value

Returns a list with components summary, mean, median, sd, and MCMCerr.

Author(s)

Howard J. Seltman <hseltman@stat.cmu.edu>

References

http://www.stat.cmu.edu/~hseltman/rube/

See Also

rube


[Package rube version 0.3-11 Index]