R/nterms.R
nterms.term.Rd
Gets the number of terms of an MCMC object.
# S3 method for class 'term' nterms(x, ...)
An object.
Other arguments passed to methods.
A integer scalar of the number of terms.
Other MCMC dimensions: nchains(), niters(), npars(), nsams(), nsims()
nchains()
niters()
npars()
nsams()
nsims()
nterms(term("alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]")) #> [1] 4 nterms(term("alpha[1]", "alpha[1]", "beta[1,1]", "beta[1,1]")) #> [1] 4