Computes the DSE decomposition and DVARS-related statistics. Based on code from github.com/asoroosh/DVARS .
DVARS(
X,
normalize = TRUE,
cutoff_DPD = 5,
cutoff_ZD = qnorm(1 - 0.05/nrow(as.matrix2(X))),
verbose = FALSE
)
X | a \(T\) by \(N\) numeric matrix representing an fMRI run. There should
not be any missing data ( |
---|---|
normalize | Normalize the data as proposed in the paper? Default:
To replicate Afyouni and Nichols' procedure for the HCP MPP data, since the HCP scans are already normalized to 10,000, just divide the data by 100 and center the voxels on their means:
Note that while voxel centering doesn't affect DVARS, it does affect DPD and ZD. |
cutoff_DPD, cutoff_ZD | Numeric outlier cutoffs. Timepoints exceeding these cutoffs will be flagged as outliers. |
verbose | Should occasional updates be printed? Default is |