Reproduces GLMsingle's canonical HRF (getcanonicalhrf) and its library
of 20 HRFs (getcanonicalhrflibrary) for a stimulus of duration stimdur
sampled at tr. Each HRF is peak-normalised to 1, and the first sample is
coincident with stimulus onset.
References
Prince, J. S., et al. (2022). Improving the accuracy of single-trial fMRI response estimates using GLMsingle. eLife, 11, e77599.
Examples
lib <- glmsingle_hrf_library(stimdur = 3, tr = 1)
dim(lib)
#> [1] 53 20