probs {wakefield} | R Documentation |
Generate a Random Vector of Probabilities.
Description
Generate a random vector of probabilities that sum to 1.
Usage
probs(j, upper = 1e+06)
Arguments
j |
An integer of number of probability elements (typically performs best at j < 4000). |
upper |
|
Value
Returns a vector of probabilities summing to 1.
Examples
probs(10)
sum(probs(100))
pie(table(month(10000, prob = probs(12))))
[Package wakefield version 0.3.6 Index]