View source: R/fmri_utility_fx.R
convolve_regressor | R Documentation |
It extends fmri.stimulus
by allowing for two normalization approaches (building on AFNI dmUBLOCK):
1) "evtmax_1": pre-convolution HRF max=1.0 normalization of each stimulus regardless of duration: identical to dmUBLOCK(1)
2) "durmax_1": pre-convolution HRF max=1.0 normalization for long events (15+ sec) – height of HRF is modulated by duration of event: identical to dmUBLOCK(0)
convolve_regressor(
n_vols,
reg,
tr = 1,
normalization = "none",
rm_zeros = TRUE,
center_values = TRUE,
convmax_1 = FALSE,
demean_convolved = FALSE,
high_pass = NULL,
convolve = TRUE,
beta_series = FALSE,
ts_multiplier = NULL,
drop_volumes = 0,
hrf_parameters = c(a1 = 6, a2 = 12, b1 = 0.9, b2 = 0.9, cc = 0.35)
)
n_vols |
The number of volumes (scans) to be output in the convolved regressor |
reg |
A matrix containing the trial, onset, duration, and value for each event |
tr |
The repetition time in seconds |
normalization |
The HRF normalization method used: "none", "durmax_1", or "evtmax_1" |
rm_zeros |
Whether to remove zeros from events vector prior to convolution. Generally a good idea since we typically center values prior to convolution, and retaining zeros will lead them to be non-zero after mean centering. |
center_values |
Whether to demean values vector before convolution. Default |
convmax_1 |
Whether to rescale the convolved regressor to a maximum height of 1. |
demean_convolved |
Whether to demean the regressor after convolution (default: |
high_pass |
The cutoff frequency (in Hz) used for high-pass filtering. If |
convolve |
If |
beta_series |
If |
ts_multiplier |
A vector that is n_vols in length that will be multiplied against the stimulus vector before convolution. |
drop_volumes |
The number of volumes to drop from the beginning of the regressor |
hrf_parameters. |
A named vector of parameters passed to |
Michael Hallquist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.