Learn R Programming

rethinking (version 2.13)

dordlogit: Ordered categorical log-odds probability density

Description

Functions for computing density, cumulative probability and producing random samples from an ordered categorical probability density.

Usage

dordlogit( x , phi , a , log=FALSE )
pordlogit( x , phi , a , log=FALSE )
rordlogit( n , phi , a )

Arguments

x

Integer values to compute densities or probabilies of

a

Vector of log-odds intercepts

phi

Linear model of log-odds

log

If TRUE, returns log-probability instead of probability

Details

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).