Support functions for paired differences, sign flipping, and wrapper functions for OLS and meta-analysis with voxelwise covariates. Compute Paired Within-Subject Differences
Arguments
- blkA
First group_data block
- blkB
Second group_data block
- rho
Optional within-subject correlation between A and B. Can be:
Scalar: Same correlation for all subjects and features
Vector of length S: Per-subject correlations
Vector of length P: Per-feature correlations
Matrix (S x P): Subject-feature specific correlations
Default is 0 (independence).