pcat {sklarsomega} | R Documentation |
Compute the cumulative distribution function for a categorical distribution.
Description
Compute the cumulative distribution function for a categorical distribution.
Usage
pcat(q, p)
Arguments
q |
vector of quantiles. |
p |
vector of probabilities. |
Details
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)'
.
Value
pcat
returns a probability or a vector of probabilities, depending on the dimension of q
.
[Package sklarsomega version 3.0-2 Index]