MLE of the ordinal model without covariates | R Documentation |
MLE of the ordinal model without covariates.
ordinal.mle(y, link = "logit")
y |
A numerical vector with values 1, 2, 3,..., not zeros, or an ordered factor. |
link |
This can either be "logit" or "probit". It is the link function to be used. |
Maximum likelihood of the ordinal model (proportional odds) is implemented. See for example the "polr" command in R or the examples.
A list including:
loglik |
The log-likelihood of the model. |
a |
The intercepts (threshold coefficients) of the model. |
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
Agresti, A. (2002) Categorical Data. Second edition. Wiley.
beta.mle, diri.nr2
y <- factor( rbinom(100,3,0.5), ordered = TRUE )
res<-ordinal.mle(y)
res<-ordinal.mle(y, link = "probit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.