Description Usage Arguments Value See Also Examples
Use the FBR method to find the beta-values
1 2 | fbrbetafunc(dat, boxtimings, ROI, timings, nbox, lenbox, TR, maximum = TRUE,
summation = FALSE, all.beta = FALSE)
|
dat |
A nifti file. Can be obtained with readData("filtered_func_data.nii"). |
boxtimings |
the designmatrix for each each timing, obtained with |
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 |
The beta-values.
designmatrix
for the boxcar function for all timings/events.,
readData
to read nifti files in R
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 ))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.