Create a continuous valued event sequence from a numeric vector
Source:R/event_vector.R
event_variable.Rd
This function generates a continuous valued event sequence object from a given numeric vector. It can be used to create event sequences for continuous predictors in fMRI data analyses.
Arguments
- vec
A numeric vector representing the continuous event sequence values
- name
A character string providing a name for the event sequence
- onsets
A numeric vector of onsets for each event in the sequence
- blockids
A numeric vector of block identifiers for each event in the sequence (default: 1)
- durations
A numeric vector of durations for each event in the sequence (default: NULL)
Value
An object representing the continuous valued event sequence, with class "event_variable" and "event_seq"
See also
EV
, event_model