Learn R Programming

mdir (version 0.9.0)

checkNumberOfSamples: Check number of samples

Description

Internal function to check the number of MCMC samples.

Usage

checkNumberOfSamples(R, thin, verbose = FALSE)

Value

No return value, called for side effects.

Arguments

R

The number of iterations in the sampler.

thin

The factor by which the samples generated are thinned, e.g. if ``thin=50`` only every 50th sample is kept.

verbose

Logical inficating if warnings should be printed.

Examples

Run this code
R <- 10000
thin <- 50
checkNumberOfSamples(R, thin)

Run the code above in your browser using DataLab