powered by
Gets the number of parameters of an object as returned by pars().
pars()
npars(x, ...)# S3 method for term npars(x, scalar = NA, ...)
# S3 method for term npars(x, scalar = NA, ...)
The object.
Unused.
A flag specifying whether to only count parameters with one term.
A count of the number of parameters.
term: Number of parameters of term vector
term
pars() and term-vector()
term-vector()
# NOT RUN { npars(as.term(c("sigma", "alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]"))) npars(as.term(c("sigma", "alpha[1]", "alpha[2]")), scalar = TRUE) # }
Run the code above in your browser using DataLab