Learn R Programming

geeVerse (version 0.3.0)

.update_correlation: Update the Working Correlation Matrix

Description

This is an internal helper function to compute the working correlation matrix based on standardized residuals.

Usage

.update_correlation(residuals, nobs, corstr, tau, cluster_indices)

Value

The updated working correlation matrix `R`.

Arguments

residuals

A numeric vector of residuals (y - mu).

nobs

A numeric vector of observations per subject.

corstr

A string specifying the correlation structure.

tau

The quantile being estimated.

cluster_indices

A numeric vector of cumulative subject observation counts.