create_hrf_afni

create_hrf_afni(
  hrf,
  tr,
  upsample_factor = NULL,
  afni_path = NULL,
  afni_quiet = TRUE
)

Arguments

hrf

name of the hemodynamic response function. can be gam, block or spmg1

tr

retrieval time (tr) in seconds

upsample_factor

number of volumes or time points

Value

Examples

hrf <- create_hrf_afni("spmg1", 1.5, 16) head(hrf)
#> hrf #> 1 0.000000e+00 #> 2 3.132328e-07 #> 3 9.126454e-06 #> 4 6.310202e-05 #> 5 2.421151e-04 #> 6 6.727547e-04
# visualize visualize_time_series(hrf, "SPMG1")