margins: Marginal distributions of a joint random variable

Description Usage Arguments Author(s) Examples

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 hofmann@iastate.edu

Examples

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

erichare/discreteRV documentation built on May 16, 2019, 8:27 a.m.