uber data wrangling wrapper function to create data for each step of data wrangling for each psy, phys, and ppi variables to ultimately create the design matrix. This function is a wrapper of create_hrf_afni()
, create_psy_var()
, create_phys_var()
, create_ppi_var()
, and create_design_matrix()
data_wrangling( psy_events_data, psy_unlabeled_trial_type, psy_contrast_table, phys_data, detrend_factor, hrf, tr, n_volumes, upsample_factor = NULL, deconvolve = TRUE, nuisance_var = NULL, afni_path = NULL, afni_quiet = FALSE )
psy_events_data | events data with columns of onset, duration, and trial_type |
---|---|
psy_contrast_table | contrast code |
phys_data | time series data of physiological variable (seed ROI) |
detrend_factor | factor to detrend time series |
hrf | hemodynamic response function time series data for convolution and deconvolution step |
tr | repition time (tr) in seconds |
n_volumes | number of volumes or time points |
upsample_factor | factor to upsample psy and phys data for convolution and deconvolution step (default: NULL) |
deconvolve | perform deconvolution of phys and convolve of ppi term (also known as deconvolve-convolve or reconvolve step) (default: TRUE) |
nuisance_var | data of nuisance variables to include in design matrix (default: NULL) |
afni_path | path to afni directory (default: NULL) |
# to be added