extract_exchangeable_residual_blocks: Extract exchangeable random-effect blocks from a fitted model

View source: R/model_exchangeable_covariance.R

extract_exchangeable_residual_blocksR Documentation

Extract exchangeable random-effect blocks from a fitted model

Description

Normalizes the random-effect coefficients and fitted covariance parameters needed by recover_exchangeable_covariance() while keeping backend-specific work in two small adapters.

Usage

extract_exchangeable_residual_blocks(model)

Arguments

model

A fitted model. Supported classes are glmmTMB and brmsfit.

Value

A list containing the model backend, one normalized record per random-effect block, and one grouping-factor ID per fitted row. Every block record contains group, coefficients, correlated, term, and an estimate/draw-by-coefficients covariance array.


dyadMLM documentation built on Oct. 28, 2026, 1:06 a.m.