View source: R/fmri_utility_fx.R
place_dmat_on_time_grid | R Documentation |
Function to convert dmat (runs x regressor list) to a time-oriented representation. This yields a list of runs where each element is data.frame of volumes x regressors
place_dmat_on_time_grid(
dmat,
convolve = TRUE,
run_timing = NULL,
bdm_args,
lg = NULL
)
dmat |
A runs x regressors 2-d list where each element is a matrix containing onset, duration, and value for a signal |
convolve |
If |
run_timing |
A vector of cumulative start times for each run in a multi-run dataset |
bdm_args |
A list of arguments passed to build_design_matrix, as well as a few fields added during the initial argument parsing. See build_design_matrix for details. Should contain:
|
lg |
An lgr logger object used for logging messages |
Note that any volumes dropped from the beginning of each run should already be reflected in the timings
of regressors in dmat
. This prevents us from needing to have a drop_volumes implementation inside convolve_regressor,
which is confusing anyhow. Likewise, run_timing should reflect the post-drop cumulative volumes.
Michael Hallquist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.