designmatrix: Create a boxcar for all timings

Description Usage Arguments Value See Also Examples

View source: R/designmatrix.R

Description

Create a boxcar for all timings

Usage

1
designmatrix(ROI, timings, nbox, lenbox, TR, include.intercept = FALSE)

Arguments

ROI

A vector of y.

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.

Value

A combination of timingmatrix and boxcars. This code gives a boxcar for each timing.

See Also

timingmatrix for a matrix of timings in which the first timing is shuffled, boxcars, the boxcar function.

Examples

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)

sremmers/FBRbeta documentation built on May 14, 2019, 8:18 a.m.