main.interest: Obtain the beta's with a method of interest

Description Usage Arguments Value See Also Examples

Description

Obtain the beta's with a method of interest

Usage

1
2
main.interest(boxtimings, ROI, maximum = FALSE, summation = FALSE,
  all.beta = FALSE, nbox)

Arguments

boxtimings

The design matrix for all timings designmatrix.

ROI

A vector of y.

maximum

Interest in the maximum of all values of beta for each trial.

summation

Interest in the summation of all values of beta for each trial.

all.beta

Interest in the full betas for each box. Note that the matrix needs to be transposed.

nbox

The amount of boxes

Value

The design matrix for all timings, in which the first timing is shuffled in space.

See Also

designmatrix, for a boxcar for a timing.

Examples

1
2
3
4
5
6
7
8
9
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
boxtimings <- designmatrix(ROI, timings, nbox, lenbox, TR)

main.interest(boxtimings, ROI, maximum = TRUE, nbox = nbox)
t(main.interest(boxtimings, ROI, all.beta = TRUE, nbox = nbox))

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