R/fmrs.R
gen_conv_reg.Rd
Generate regressors by convolving a specified response function with a stimulus.
gen_conv_reg(
onset,
duration = NULL,
trial_type = NULL,
mrs_data = NULL,
tr = NULL,
Ndyns = NULL,
Ntrans = NULL,
resp_fn,
match_tr = TRUE,
normalise = FALSE
)
stimulus onset in seconds.
stimulus duration in seconds.
string label for the stimulus.
mrs_data object for timing information.
repetition time.
number of dynamic scans stored, potentially less than Ntrans if block averaging has been performed.
number of dynamic scans acquired.
a data frame specifying the response function to be convolved.
match the output to the input mrs_data.
normalise the response function to have a maximum value of one.
BOLD regressor data frame.