Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nchain

Dimensions of MCMC objects


Description

These functions give the dimensions of an MCMC object

niter(x)

returns the number of iterations.

nvar(x)

returns the number of variables.

nchain(x)

returns the number of parallel chains.

Usage

niter(x)
nvar(x)
nchain(x)

Arguments

x

An mcmc or mcmc.list object

Value

A numeric vector of length 1:

See Also


coda

Output Analysis and Diagnostics for MCMC

v0.19-4
GPL (>= 2)
Authors
Martyn Plummer [aut, cre, trl], Nicky Best [aut], Kate Cowles [aut], Karen Vines [aut], Deepayan Sarkar [aut], Douglas Bates [aut], Russell Almond [aut], Arni Magnusson [aut]
Initial release
2020-09-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.