iid: Probability mass function of X^n

Description Usage Arguments Author(s) Examples

View source: R/discreteRV-Probabilities.r

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)

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

Search within the discreteRV package
Search all R packages, documentation and source code