single_trial_regressor | R Documentation |
construct a regressor object that has a single onset
single_trial_regressor(
onsets,
hrf = HRF_SPMG1,
duration = 0,
amplitude = 1,
span = 24
)
onsets |
the event onset in seconds, must be of length 1. |
hrf |
a hemodynamic response function, e.g. |
duration |
duration of the event (default is 0) |
amplitude |
scaling vector (default is 1) |
span |
the temporal window of the impulse response function (default is 24) |
an S3 list of type single_trial_regressor
reg <- single_trial_regressor(c(10), HRF_SPMG1)
pred <- evaluate(reg, seq(0,100,by=2))
nbasis(reg) == 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.