powered by
Gets the number of parameter dimensions of an object as returned by pdims().
pdims()
npdims(x, ...)# S3 method for term npdims(x, terms = FALSE, ...)
# S3 method for term npdims(x, terms = FALSE, ...)
The object.
Unused.
A flag specifying whether to get the number of dimensions for each term element.
A named integer vector of the number of dimensions of each parameter.
term: Number of parameter dimensions of term vector
term
pdims() and term-vector()
term-vector()
# NOT RUN { npdims(as.term(c("alpha[1]", "alpha[3]", "beta[1,1]", "beta[2,1]"))) npdims(as.term(c("alpha[1]", "alpha[3]", "beta[1,1]", "beta[2,1]")), terms = TRUE) # }
Run the code above in your browser using DataLab