Learn R Programming

qbrms (version 1.0.1)

qbrmb_aggressive: Aggressively regularised binomial mixed-effects model

Description

Convenience wrapper around qbrmb using the "aggressive" strategy with a higher default regularisation strength.

Usage

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

Value

An object of class c("qbrmb_fit", "qbrms_fit", "list").

Arguments

formula

Model formula with random effects (lme4-style).

data

Data frame containing the variables in the model.

verbose

Logical; if TRUE, show detailed diagnostics.

...

Additional arguments passed to qbrmb.

Examples

Run this code
# \donttest{
if (requireNamespace("INLA", quietly = TRUE)) {
  set.seed(123)
  data <- data.frame(
    y     = rbinom(100, 1, 0.2),
    x     = rnorm(100),
    group = factor(rep(1:10, each = 10))
  )
  # qbrmb_aggressive requires a mixed model with random intercepts
  fit <- qbrmb_aggressive(y ~ x + (1 | group), data = data, verbose = FALSE)
}
# }

Run the code above in your browser using DataLab