Learn R Programming

qbrms (version 1.0.1)

qbrmO: Quick Bayesian Ordinal Regression Models with Adaptive Centering

Description

Fits ordinal regression models using Template Model Builder (TMB) with Laplace approximation and adaptive threshold centering to match brms output.

Usage

qbrmO(
  formula,
  data,
  family = cumulative(),
  prior = NULL,
  verbose = FALSE,
  threshold_method = "quantile",
  control = list(),
  ...
)

Value

An object of class c("tmb_ordinal_qbrms_fit", "qbrms_fit")

Arguments

formula

Model formula with ordinal response on the left-hand side.

data

Data frame containing the variables in the model.

family

Ordinal family specification. Currently supports cumulative().

prior

Prior specifications using qbrms prior syntax.

verbose

Logical; print progress messages during fitting.

threshold_method

Method for threshold centering ("quantile" or "cumulative_mean").

control

List of control parameters for TMB optimization.

...

Additional arguments passed to TMB functions.