This function constructs an event model from a list of hemodynamic response function
(HRF) specifications x
, along with other parameters like data, block, sampling frame,
and durations. It is specifically designed to handle lists of HRF specifications.
Usage
# S3 method for list
event_model(
x,
data,
block,
sampling_frame,
drop_empty = TRUE,
durations = 0,
precision = 0.3,
...
)
Arguments
- x
A list of HRF specifications. All elements in
x
must be of typehrfspec
.- data
The dataset containing the event information.
- block
The block variable, either a formula or a vector of block values.
- sampling_frame
The time series grid over which to sample the function.
- drop_empty
Logical indicating whether to drop empty events. Default is
TRUE
.- durations
A numeric vector of event durations. Default is 0 for all events.
- precision
Numeric value indicating the precision of the model. Default is 0.3.
- ...
Additional arguments.