| .partial_corr_gau | R Documentation |
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.
.partial_corr_gau(y, i, j, mu = NULL)
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. |
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.
Sample partial correlation (scalar).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.