Helper function to extract parameters for mixed-effects models
extract_parameters_mixed_effects(
mu,
betas,
sigma,
sigma_alpha,
distribution,
node_id,
parent_nodes,
start_counter,
link_function
)Fixed-effect intercept(s) from mu component
Fixed-effect coefficients from betas component
Residual variance from sigma component
Random-effect variance/covariance from sigma_alpha component
Node distribution type
Node identifier
Parent node identifiers
Starting parameter counter
Link function name
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)