View source: R/distributions.r
dordlogit | R Documentation |
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 )
x |
Integer values to compute densities or probabilies of |
a |
Vector of log-odds intercepts |
phi |
Linear model of log-odds |
log |
If |
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
).
Richard McElreath
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.