fbrbetafunc: Use the FBR method to find the beta-values

Description Usage Arguments Value See Also Examples

Description

Use the FBR method to find the beta-values

Usage

1
2
fbrbetafunc(dat, boxtimings, ROI, timings, nbox, lenbox, TR, maximum = TRUE,
  summation = FALSE, all.beta = FALSE)

Arguments

dat

A nifti file. Can be obtained with readData("filtered_func_data.nii").

boxtimings

the designmatrix for each each timing, obtained with designmatrix.

ROI

The vector of interest y.

timings

A string of timings.

nbox

The amount of boxcars in the design matrix.

lenbox

The length of boxcars in the design matrix.

TR

Sampling rate.

maximum

Maximum is default, other option: summation, all.beta.

summation

The sum

all.beta

The full beta-matrix

Value

The beta-values.

See Also

designmatrix for the boxcar function for all timings/events., readData to read nifti files in R

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)
dat = 0 #not required in this example, but is readData("filtered_func_data.nii")

fbrbetafunc(dat, boxtimings, ROI, timings, nbox, lenbox, TR, maximum = TRUE )
t(fbrbetafunc(dat, boxtimings, ROI, timings, nbox, lenbox, TR, all.beta = TRUE ))

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