Learn R Programming

qbrms (version 1.0.1)

conditional_effects.tmb_ordinal_qbrms_fit: Conditional Effects for TMB Ordinal Models

Description

Conditional Effects for TMB Ordinal Models

Usage

# S3 method for tmb_ordinal_qbrms_fit
conditional_effects(
  object,
  effects = NULL,
  prob = 0.95,
  ndraws = 100,
  spaghetti = FALSE,
  n_points = 100,
  plot = TRUE,
  at = list(),
  seed = NULL,
  conditions = NULL,
  categorical = TRUE,
  resolution = NULL,
  ...
)

Value

List of conditional effects

Arguments

object

A tmb_ordinal_qbrms_fit object

effects

Character vector of effect names (defaults to auto-detected)

prob

Confidence level

ndraws

Number of draws

spaghetti

Logical

n_points

Number of points for continuous predictors

plot

Logical, whether to return plots

at

Named list of conditioning values

seed

Random seed

conditions

Ordinal-specific conditions (for backwards compatibility)

categorical

Whether to show categorical plot (for backwards compatibility)

resolution

Grid resolution (for backwards compatibility)

...

Additional arguments