Description Usage Arguments Value See Also Examples
Create a boxcar for all timings
1 | designmatrix(ROI, timings, nbox, lenbox, TR, include.intercept = FALSE)
|
ROI |
A vector of |
timings |
A string of timings. |
nbox |
Amount of boxcars in the design matrix. |
lenbox |
Amount of length of the boxcar in the design matrix. |
TR |
Sampling rate. |
include.intercept |
Include intercept, default is FALSE. |
A combination of timingmatrix
and boxcars
.
This code gives a boxcar for each timing.
timingmatrix
for a matrix of timings in which the
first timing is shuffled, boxcars
, the boxcar function.
1 2 3 4 5 6 | ROI = c(9, -3, -7, -9, -7, -5, -9, 2, 7, 13, 20, 9, 4, 2, 7, 7, -2, -3, -5, 0)
timings = c(2, 6, 8, 10, 12, 14)
nbox = 3
lenbox = 2
TR = 1
designmatrix(ROI, timings, nbox, lenbox, TR)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.