Learn R Programming

SimInf (version 11.1.0)

length,SimInf_pmcmc-method: Length of the MCMC chain

Description

Get the number of iterations (samples) in the Markov Chain Monte Carlo (MCMC) chain stored in a SimInf_pmcmc object.

Usage

# S4 method for SimInf_pmcmc
length(x)

Value

An integer scalar representing the number of rows in the

chain slot (i.e., the total number of samples in the chain).

Arguments

x

A SimInf_pmcmc object containing the MCMC results.