| marginal | R Documentation |
x over components indices.Generic method for obtaining the marginal distribution of a distribution
object x over components indices.
marginal(x, indices)
x |
The distribution object. |
indices |
The indices of the marginal distribution to obtain. |
A distribution object for the marginal over indices.
x <- mvn(c(0, 0), diag(2))
m <- marginal(x, 1) # marginal over first component
mean(m) # 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.