Learn R Programming

lava (version 1.11)

ordreg: Univariate cumulative link regression models

Description

Ordinal regression models

Usage

ordreg(
  formula,
  data = parent.frame(),
  offset,
  family = stats::binomial("probit"),
  start,
  fast = FALSE,
  ...
)

Arguments

formula

formula

data

data.frame

offset

offset

family

family (default proportional odds)

start

optional starting values

fast

If TRUE standard errors etc. will not be calculated

...

Additional arguments to lower level functions

Author

Klaus K. Holst

Details

Let \(Y\in\{1,...,J\}\) be the ordinal outcome and \(X\) a vector of covariates. The cumulative link model is given by $$ P(Y\leq j|X=x) = g(a_j - b^\top x), j=1,...,J-1.$$ The default link function is the Probit function, i.e. where \(g\) is equal to the standard normal cumulative distribution function. The proportional odds model is obtained with family=binomial(logit).

Note, the intercept parameters are parametrized such that they are monotone increasing \(a_1 < \cdots < a_{J-1}\). To get the parameter estimates of the actual \(a_j\)'s use the summary method.

Examples

Run this code
m <- lvm(y~x)
ordinal(m,K=3) <- ~y
d <- sim(m,100)
e <- ordreg(y~x,d)
summary(e)

Run the code above in your browser using DataLab