margins {discreteRV} | R Documentation |
Marginal distributions of a joint random variable
Description
Extracts the marginal probability mass functions from a joint distribution.
Usage
margins(X, sep = ",")
Arguments
X |
a random variable |
sep |
parameter specifying the separator between dimensions, defaults to "," |
Author(s)
Heike Hofmann hofmann@iastate.edu
Examples
X <- RV(1:6, 1/6)
X3 <- iid(X, 3)
margins(X3)
[Package discreteRV version 1.2.2 Index]