group_effects: Extract the learned group intercepts

View source: R/utils.R

group_effectsR Documentation

Extract the learned group intercepts

Description

Returns the per-level intercepts that a model fitted with groups adds to its linear predictor, on the scale of the outcome for regression and of the link otherwise.

Usage

group_effects(object, ...)

## S3 method for class 'densemlp'
group_effects(object, ...)

Arguments

object

A fitted densemlp object fitted with groups.

...

Unused.

Value

A named list with one entry per grouping factor: a named numeric vector of intercepts (one per level), or for multiclass a matrix with one row per level and one column per class. For an ensemble, the members' intercepts are averaged.


densemlp documentation built on Nov. 3, 2026, 1:09 a.m.