convolve_afni: convolve_afni

View source: R/convolve_afni.R

convolve_afniR Documentation

convolve_afni

Description

convolve_afni

Usage

convolve_afni(
  data,
  hrf,
  tr,
  n_volumes,
  upsample_factor = NULL,
  afni_path = NULL,
  afni_quiet = FALSE
)

Arguments

data

data to convolve

hrf

hemodynamic response function (hrf) time series

tr

repition time (tr) in seconds

n_volumes

number of volumes or time points

upsample_factor

factor to upsample data for convolution step

Examples

data <- sample(7500:15000, 10, T)/100
hrf <- create_hrf_afni("spmg1", 16)
convolve_afni(data, hrf, 1.5, 100, 16)

epongpipat/ppi documentation built on Jan. 31, 2024, 1:02 p.m.