as.RV: Turn a probability vector with possible outcome values in the...

Description Usage Arguments

Description

Turn a probability vector with possible outcome values in the 'names()' attribute into a random variable:

Usage

1
as.RV(px, fractions = TRUE)

Arguments

px

A probability vector with possible outcome values in the 'names()' attribute

fractions

If TRUE, return the probabilities as fractions


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