Learn R Programming

abn (version 3.1.12)

extract_parameters_mixed_effects: Helper function to extract parameters for mixed-effects models

Description

Helper function to extract parameters for mixed-effects models

Usage

extract_parameters_mixed_effects(
  mu,
  betas,
  sigma,
  sigma_alpha,
  distribution,
  node_id,
  parent_nodes,
  start_counter,
  link_function
)

Arguments

mu

Fixed-effect intercept(s) from mu component

betas

Fixed-effect coefficients from betas component

sigma

Residual variance from sigma component

sigma_alpha

Random-effect variance/covariance from sigma_alpha component

distribution

Node distribution type

node_id

Node identifier

parent_nodes

Parent node identifiers

start_counter

Starting parameter counter

link_function

Link function name

Details

Extracts parameters from mixed-effects models following the new JSON structure.

For each node, creates parameters for:

  • Fixed-effect intercept (from mu)

  • Fixed-effect coefficients for parents (from betas)

  • Residual variance (from sigma, for Gaussian/Poisson)

  • Random-effect variance/covariance (from sigma_alpha)