R/samples.set.lastChain.R

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

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.