Learn R Programming

CNPBayes (version 1.2.2)

McmcParams-class: An object to specify MCMC options for a later simulation

Description

An object to specify MCMC options for a later simulation

Arguments

Slots

thin
A one length numeric to specify thinning. A value of n indicates that every nth sample should be saved. Thinning helps to reduce autocorrelation.
iter
A one length numeric to specify how many MCMC iterations should be sampled.
burnin
A one length numeric to specify burnin. The first $n$ samples will be discarded.
nstarts
A one length numeric to specify the number of chains in a simulation.
param_updates
Indicates whether each parameter should be updated (1) or fixed (0).

Examples

Run this code
McmcParams()
McmcParams(iter=1000)
mp <- McmcParams()
iter(mp)

Run the code above in your browser using DataLab