Learn R Programming

qbrms (version 1.0.1)

qbrms_ordinal_binary: Ordinal regression via binary decomposition (fallback)

Description

Splits an ordered response with K levels into K-1 binary problems (thresholds y > c_j) and fits a simple binomial GLM for each split.

Usage

qbrms_ordinal_binary(formula, data, verbose = FALSE, ...)

Value

An object of class c("ordinal_binary_qbrms_fit","qbrms_fit") with:

  • binary_models: list of length K-1 of fitted glm objects

  • thresholds: character vector of thresholds used

  • response: response variable name

  • levels: factor levels of the ordered response

  • ordinal_levels: factor levels (for test compatibility)

Arguments

formula

Model formula with an ordered response on the LHS.

data

Data frame.

verbose

Logical; print progress messages.

...

Ignored (compat).