Mass, distribution function, quantile function and random generation for an ordinal distribution.
1 2 3 4 5 6 7 |
x, q |
vector of integers or character values that must exist in 'names(prob)' |
prob |
vector of probabilities for observing each value |
log |
logical; if TRUE, probabilities p are given as log(p) |
p |
vector of probabilities |
as.numeric |
logical; return value as numeric or character? |
n |
number of random values to return |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.