fastglm_ordinal_batch: Fit several ordinal responses using shared predictors

View source: R/ordinal-prepared.R

fastglm_ordinal_batchR Documentation

Fit several ordinal responses using shared predictors

Description

Fits responses sequentially using a prepared ordinal design. The design setup is reused whenever effective row frequencies match. Each response uses its own empirical starting thresholds and category mapping; estimates from an earlier response are not used as starting values.

Usage

fastglm_ordinal_batch(
  design,
  y,
  weights = NULL,
  offset = NULL,
  levels = NULL,
  firth = NULL,
  tol = 1e-08,
  maxit = 200L,
  block.size = 2048L,
  control = list(),
  link = NULL,
  nonparallel = NULL
)

Arguments

design

an object from fastglm_ordinal_prepare(), or a dense numeric matrix without a location intercept.

y

a list of ordinal responses. Each element may be an ordered factor, category codes with declared levels, or a matrix of category counts. Use a list even for a single count matrix, so its category columns are not mistaken for separate responses.

weights, offset

common fitting vectors, or matrices with one column per response. NULL uses the prepared defaults. Replacement offsets are total location offsets.

levels

common outcome labels or a list with one category order per response. NULL uses the prepared default or each response's own labels.

firth

default to the prepared design's setting, or FALSE for a matrix.

tol, maxit, block.size, control

ordinal fitting controls; see fastglm_ordinal().

link

default to the prepared link, or "logit" for a matrix.

nonparallel

selected varying slopes, as in fastglm_ordinal_prepare(). Omitting this argument uses the prepared default; explicitly supplying NULL selects common slopes.

Value

A list of fastglm_ordinal fits, with the response list's names.


fastglm documentation built on Nov. 11, 2026, 5:07 p.m.