margins: Marginal distributions of a joint random variable

Description Usage Arguments Author(s) Examples

View source: R/discreteRV-Probabilities.r

Description

Extracts the marginal probability mass functions from a joint distribution.

Usage

1
margins(X, sep = ",")

Arguments

X

a random variable

sep

parameter specifying the separator between dimensions, defaults to ","

Author(s)

Heike Hofmann [email protected]

Examples

1
2
3
X <- RV(1:6, 1/6)
X3 <- iid(X, 3)
margins(X3)

discreteRV documentation built on May 30, 2017, 2:21 a.m.