dot-partial_corr_gau: Compute intervenor-adjusted sample partial correlation

.partial_corr_gauR Documentation

Compute intervenor-adjusted sample partial correlation

Description

Computes the sample partial correlation between Y_i and Y_j, adjusted for the intervenors Y_(j+1), ..., Y_(i-1), from the residuals of the fitted mean structure.

Usage

.partial_corr_gau(y, i, j, mu = NULL)

Arguments

y

Numeric matrix n_subjects by n_time.

i

Row/column index (larger time index).

j

Row/column index (smaller time index), j < i.

mu

Optional mean vector for centering.

Details

The intervenor-adjusted partial correlation r_(i,j|(j+1:i-1)) is computed from residuals of regressing Y_i and Y_j on the intervenors.

Under AD(p), the partial correlation r_(i,i-k|(i-k+1:i-1)) should be approximately zero for k > p.

Value

Sample partial correlation (scalar).


antedep documentation built on April 25, 2026, 1:06 a.m.