View source: R/event_lock_timeseries.R
get_medusa_interpolated_ts | R Documentation |
front-end function for taking a list of windowed time series by mask value, interpolating them onto a time grid, and (optionally) averaging across voxels/units within a value to derive the mean interpolated time series
get_medusa_interpolated_ts(
fmri_obj,
event = NULL,
time_before = -3,
time_after = 3,
collide_before = NULL,
collide_after = NULL,
pad_before = -1.5,
pad_after = 1.5,
output_resolution = NULL,
group_by = "trial",
time_audit = FALSE
)
fmri_obj |
an fmri_ts object containing a single run of data with corresponding events |
event |
the event to which the fmri time series should be aligned (column in |
time_before |
How many seconds before the |
time_after |
How many seconds after the |
collide_before |
An optional vector of column names in |
collide_after |
An optional vector of column names in |
pad_before |
Number of seconds to include in the epoch time window before the event of interest. Interpolation
spans the window from |
pad_after |
Number of seconds to include in the epoch time window after the event of interest. |
output_resolution |
the sampling frequency (in seconds) of the interpolated data. Defaults to be
the same as |
group_by |
return interpolated time series for each combination of group_by variables. Default is to provide one interpolated time series per trial. |
time_audit |
If TRUE, additional columns will be added to the output showing how alignment is calculated vis-a-vis event timing |
Michael Hallquist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.