See also nirs.modules.GLM
nirs.modules.AR_IRLS
This module runs a GLM using an autoregressive iterative least squares algoroithm for correcting motion and serially correlated error in fNIRS data.
By default, the nirs.modules.GLM module utilizes this (AR-IRLS) algorithm [1].
Example Usage:
raw = nirs.testing.simData;
job = nirs.modules.OpticalDensity();
job = nirs.modules.BeerLambertLaw(job);
job = nirs.modules.AR_IRLS(job);
Stats = job.run(raw);
Reference
[1] Barker JW, Aarabi A, Huppert TJ. Autoregressive model based algorithm for correcting motion and serially correlated errors in fNIRS. Biomed Opt Express. 2013 Jul 17;4(8):1366-79. doi: 10.1364/BOE.4.001366. PMID: 24009999; PMCID: PMC3756568. https://pubmed.ncbi.nlm.nih.gov/24009999/