Computes the correlation between two brain maps and optionally tests significance using a spatial null model to account for spatial autocorrelation.
Arguments
- x, y
Numeric vectors of brain map values, or file paths to GIFTI/NIfTI files.
- method
Correlation method:
"pearson"or"spearman".- null_method
Optional null model method for empirical p-values. One of
"burt2020","moran","spin_vasa","spin_hungarian","alexander_bloch","baum","cornblath","burt2018", orNULLfor parametric only.- n_perm
Integer number of null permutations.
- nulls
Pre-computed null_distribution object for
x.- distmat
Distance matrix (passed to null model if needed).
- coords
Coordinate list (passed to spin null models if needed).
- seed
Optional integer seed for reproducibility.
- na.rm
Logical, remove NA values before computing correlation.
- verbose
Logical, print progress messages.
- ...
Additional arguments passed to
generate_nulls().