Dimension of the ditribution

# S3 method for Distribution
dim(x)

# S3 method for Model
dim(model)

Arguments

x

Distribution

Value

It is NULL or an integer.

Details

The function dim is an internal generic primitive functions. dim has a method for distributions, which returns the dimension of the space over which the respective distribution is defined. Basically, it is the number of random variables - the length of vector variables(this).

Methods (by class)

  • Distribution: Dimension of a probability distribution

  • Model: Dimension of the compositional model

Examples

data(Pi) variables(Pi)
#> [1] "A" "B"
dim(Pi)
#> [1] 2