R/samples.set.firstChain.R

"samplesSetFirstChain" <-
function(first)
#   Set the firstChain field
{
    if(!is.numeric(first))
        stop("first ", "must be numeric")
    first <- as.integer(first)
    if(!(first %in% 1:getNumChains()))
        stop("it is required to have 1 <= first <= nchains")
    options("BRugsSamplesFirstChain" = first)
}

Try the BRugs package in your browser

Any scripts or data that you put into this service are public.

BRugs documentation built on May 31, 2023, 7:19 p.m.