Probability mass function of X^n

Share:

Description

Probability mass function of X^n

Usage

1
iid(X, n = 2, sep = ",", fractions = attr(X, "fractions"))

Arguments

X

random variable

n

power

sep

separator between items from marginal distributions, by default set to ","

fractions

If TRUE, return the probabilities as fractions

Author(s)

Heike Hofmann hofmann@iastate.edu

Examples

1
2
3
d <- RV(c("A","B","C"), odds = c(3,5,11))
d2 <- iid(d)
probs(d2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.