hzar.make.mcmcParam: Set the parameters controling the optimizer environment.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/31-hzarFittingNew.R

Description

Defines the general parameters controlling an MCMC process. This includes the burnin, chainLength, diangostic output, and the random number generator seed, as used by the MCMCmetrop1R optimizer.

Usage

1
2
3
hzar.make.mcmcParam(chainLength, burnin, verbosity, thin,
  seedStreamChannel = 1, useSeedStream = TRUE, mersenneSeed = 12345,
  lecuyerSeed = rep(12345, 6))

Arguments

chainLength

Defines how many generations to run the MCMC process after completing burnin.

burnin

Defines how many states to generate and discard at the begining of the chain.

verbosity

If 0, output nothing while mcmc process is running. If positive, print the model state every verbosity generations after burn-in.

thin

Keep only states whose number of generations after burn-in is evenly divisible by thin.

seedStreamChannel

Set the channel number used in the lecuyer random number generator.

useSeedStream

If TRUE, use the lecuyer random number generator in the MCMC process. If FALSE, use the mersenne twister random generator in the MCMC process.

mersenneSeed

Sets the seed value for mersenne twister. Expects a numeric of length 1.

lecuyerSeed

Sets the seed value for lecuyer random number generator. Expects a numeric of length 6.

Value

A list of 5 values:

chainLength

The value of the mcmc argument for MCMCmetrop1R.

burnin

The value of the burnin argument for MCMCmetrop1R.

verbosity

The value of the verbose argument for MCMCmetrop1R.

thin

The value of the thin argument for MCMCmetrop1R.

seed

The value of the seed argument for MCMCmetrop1R.

Author(s)

Graham Derryberry asterion@alum.mit.edu

See Also

MCMCmetrop1R

Examples

1
##TODO

Example output

Loading required package: MCMCpack
Loading required package: coda
Loading required package: MASS
##
## Markov Chain Monte Carlo Package (MCMCpack)
## Copyright (C) 2003-2019 Andrew D. Martin, Kevin M. Quinn, and Jong Hee Park
##
## Support provided by the U.S. National Science Foundation
## (Grants SES-0350646 and SES-0350613)
##
Loading required package: foreach

hzar documentation built on May 2, 2019, 7 a.m.