Description Usage Arguments Value Author(s) Examples
View source: R/lsm_ttestFast.R
Lesion to symptom mapping performed on a prepared matrix. T-tests are performed using each column of the matrix to split the behavioral scores in two groups. If var.equal=TRUE the Welch test is performed instead. This function relies on TTfast, a compiled version to run on thousands of voxels (about 60 faster then regular t-tests in R).
1 2 3 | lsm_ttestFast(lesmat, behavior, var.equal = TRUE,
alternative = "greater", checkAssumptions = TRUE, showInfo = TRUE,
...)
|
lesmat |
binary matrix (0/1) of voxels (columns) and subjects (rows). |
behavior |
vector of behavioral scores. |
var.equal |
logical (default=TRUE) should the variance between groups considered equal (t-test) or unequal (Welch test). |
alternative |
(default='greater') Sets the expected
relationship between voxel value and behavior. By default
voxels with zero are not lesioned, and behavior is expected to
be higher, thus |
checkAssumptions |
(default=TRUE) Check how many voxels violate the t-test assumptions (heteroscadsticity and/or normality). |
showInfo |
logical (default=TRUE), display time-stamped info messages |
... |
other arguments received from |
List of objects returned:
statistic
- vector of statistical values
pvalue
- vector of pvalues
zscore
- vector of zscores
Dorian Pustina
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.