Functions for computing density, cumulative probability and producing random samples from an ordered categorical probability density.
dordlogit( x , phi , a , log=FALSE )
pordlogit( x , phi , a , log=FALSE )
rordlogit( n , phi , a )
Integer values to compute densities or probabilies of
Vector of log-odds intercepts
Linear model of log-odds
If TRUE
, returns log-probability instead of probability
These functions provide for common density calculations for the ordered categorical probability density commonly known as an "ordered logit" or "ordered logistic." This is the same probability density assumed by the polr
function (library MASS
).