dot-update_correlation: Update the Working Correlation Matrix

.update_correlationR Documentation

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)

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.

Value

The updated working correlation matrix 'R'.


geeVerse documentation built on Aug. 21, 2025, 5:56 p.m.