Learn R Programming

MachineShop (version 1.1.0)

POLRModel: Ordered Logistic or Probit Regression Model

Description

Fit a logistic or probit regression model to an ordered factor response.

Usage

POLRModel(method = c("logistic", "probit", "loglog", "cloglog",
  "cauchit"))

Arguments

method

logistic or probit or (complementary) log-log or cauchit (corresponding to a Cauchy latent variable).

Value

MLModel class object.

Details

Response Types:

ordered

Further model details can be found in the source link below.

See Also

polr, fit, resample, tune

Examples

Run this code
# NOT RUN {
library(MASS)

df <- Boston
df$medv <- cut(Boston$medv, breaks = c(0, 15, 20, 25, 50), ordered = TRUE)   
fit(medv ~ ., data = df, model = POLRModel())

# }

Run the code above in your browser using DataLab