mc_updateCov: Update Covariance Parameters

View source: R/mc_updatedCov.R

mc_updateCovR Documentation

Update Covariance Parameters

Description

Updates the covariance and power parameter vectors stored in a list used during the model fitting algorithm. This function is intended for internal use and distributes covariance parameters across response-specific components and the correlation parameter.

Usage

mc_updateCov(list_initial, covariance, list_power_fixed, information, n_resp)

Arguments

list_initial

A list containing the current values of the model parameters. The elements tau, power, and rho are updated by this function.

covariance

A numeric vector containing the current values of the covariance parameters for all response variables and, if applicable, the correlation parameter.

list_power_fixed

A list of logical values indicating for each response whether the power parameter should remain fixed (TRUE) or be updated (FALSE).

information

A list containing model dimension information, including the number of tau and power parameters per response variable, and the number of correlation parameters. 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 elements tau, power, and rho contain the updated covariance parameter values for each response variable and the correlation parameter. 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.