Learn R Programming

CNPBayes (version 1.2.2)

nStarts: Number of MCMC chains.

Description

This function retrieves the number of chains used for an MCMC simulation.

This function changes the number of chains used for an MCMC simulation.

Usage

nStarts(object)
nStarts(object) <- value
"nStarts"(object)
"nStarts"(object) <- value
"nStarts"(object)
"nStarts"(object) <- value

Arguments

object
see showMethods(nStarts)
value
new number of chains

Value

An integer of the number of different starts.

Examples

Run this code
number_of_chains <- nStarts(MarginalModelExample)
number_of_chains <- 3
nStarts(MarginalModelExample) <- number_of_chains

Run the code above in your browser using DataLab