create_ppi_var: create_ppi_var

View source: R/create_ppi_var.R

create_ppi_varR Documentation

create_ppi_var

Description

creates data for each step of the ppi variable by wrapping the functions: convolve_afni() and downsample()

Usage

create_ppi_var(
  psy_var,
  phys_var,
  hrf,
  tr,
  n_volumes,
  upsample_factor = NULL,
  deconvolve = TRUE,
  afni_path = NULL,
  afni_quiet = FALSE
)

Arguments

psy_var

psychological variable data (e.g., psy var that is contrast-coded and upsampled)

phys_var

physiological variable data (e.g., psy var that is detrended and upsampled)

hrf

hemodynamic response function (hrf) time series data

tr

repetition time (tr) in seconds

n_volumes

number of volumes or time points

upsample_factor

factor to upsample data by for convolution and deconvolution step (default: NULL)

deconvolve

option to perform or not perform deconvolution step (default: TRUE)

afni_path

path to afni directory (default: NULL)

Value

a list of datasets for each data wrangling step of the ppi variables


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