check.parameters {MCMCpack}R Documentation

MCMCpack Helper Function: Check Simulation Parameters

Description

Check the simulation parameters to make sure they are appropriate. This is called by the MCMC* model functions.

Usage

  check.parameters(burnin, mcmc, thin, fcn, tune=NA)

Arguments

burnin The number of burn-in iterations for the sampler.
mcmc The number of MCMC iterations for the sampler.
thin The thinning interval used in the simulation. The number of MCMC iterations must be divisible by this value.
fcn String containing function name (with no parentheses). It is used to throw informative errors.
tune (Optional) tuning parameter for models that have a single Metropolis-Hastings tuning parameter.

Value

Returns zero if exits cleanly.

Examples

  check.parameters(100,1000,10,"MCMCregress")

[Package Contents]