Description Usage Arguments Value Author(s) See Also Examples
View source: R/31-hzarFittingNew.R
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.
1 2 3 | hzar.make.mcmcParam(chainLength, burnin, verbosity, thin,
seedStreamChannel = 1, useSeedStream = TRUE, mersenneSeed = 12345,
lecuyerSeed = rep(12345, 6))
|
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 |
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. |
A list of 5 values:
chainLength |
The value of the mcmc argument for |
burnin |
The value of the burnin argument for |
verbosity |
The value of the verbose argument for |
thin |
The value of the thin argument for |
seed |
The value of the seed argument for |
Graham Derryberry asterion@alum.mit.edu
1 | ##TODO
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.