Learn R Programming

term (version 0.1.0)

pdims: Parameter Dimensions

Description

Gets the parameter dimensions of an object as a named list of the dimensions of each parameter.

Usage

pdims(x, ...)

Arguments

x

The object.

...

Unused.

Value

A named list of the dimensions of each parameter.

Details

Errors if the parameter dimensions are inconsistent.

A named list of the dimensions of each parameter can be converted into the equivalent term-vector() using term().

See Also

dims() and term()

Examples

Run this code
# NOT RUN {
pdims(as.term(c("alpha[1]", "alpha[3]", "beta[1,1]", "beta[2,1]")))
# }

Run the code above in your browser using DataLab