Learn R Programming

term (version 0.3.5)

nterms.term_rcrd: Number of Terms of a Term Record

Description

Gets the number of terms of an MCMC object.

Usage

# S3 method for term_rcrd
nterms(x, ...)

Value

A integer scalar of the number of terms.

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

Other MCMC dimensions: nchains(), niters(), npars(), nsams(), nsims()

Examples

Run this code
nterms(as_term_rcrd(term("alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]")))
nterms(as_term_rcrd(term("alpha[1]", "alpha[1]", "beta[1,1]", "beta[1,1]")))

Run the code above in your browser using DataLab