mc_updateBeta: Update Regression Parameters

View source: R/mc_updatedBeta.R

mc_updateBetaR Documentation

Update Regression Parameters

Description

Updates the regression parameter vectors stored in a list used during the model fitting algorithm. This function is intended for internal use and is called repeatedly to redistribute the regression parameters across response-specific components.

Usage

mc_updateBeta(list_initial, betas, information, n_resp)

Arguments

list_initial

A list containing the current values of the model parameters. The element regression is updated by this function.

betas

A numeric vector containing the current values of the regression parameters for all response variables.

information

A list containing model dimension information, including the number of regression parameters per response variable. Typically the output of mc_getInformation.

n_resp

An integer specifying the number of response variables in the model.

Value

A list with the same structure as list_initial, where the element regression contains the updated regression parameter vectors for each response variable. The returned object is intended for internal use only.

Author(s)

Wagner Hugo Bonat


mcglm documentation built on Jan. 9, 2026, 1:07 a.m.