powered by
mvn
x
indices
Generic method for obtaining the marginal distribution of an mvn object x over components indices.
# S3 method for mvn marginal(x, indices)
A normal (for a single index) or mvn marginal distribution.
normal
The mvn object.
The indices of the marginal distribution to obtain.
X <- mvn(c(1, 2, 3)) # Univariate marginal marginal(X, 1) # Bivariate marginal marginal(X, c(1, 3))
Run the code above in your browser using DataLab