pcat | R Documentation |
Compute the cumulative distribution function for a categorical distribution.
pcat(q, p)
q |
vector of quantiles. |
p |
vector of probabilities. |
This function uses dcat
to compute the cdf for the categorical distribution with support 1, \dots , K
and probabilities p = (p_1, \dots , p_K)'
.
pcat
returns a probability or a vector of probabilities, depending on the dimension of q
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.