Description Usage Arguments Value Author(s) Examples
View source: R/lsm_regresfast.R
Lesion to symptom mapping performed on a prepared matrix. Regressions are performed between behavior and each column of the lesmat matrix. Fast function based on compiled code.
1 2 3 4 |
lesmat |
matrix of voxels (columns) and subjects (rows). |
behavior |
vector of behavioral scores. |
covariates |
(default=NA) vector of matrix of covariates. |
FWERperm |
logical (default=FALSE) whether to run permutation based FWER thresholding. |
nperm |
Number of permutations to perform when needed. |
v |
(default=1) what voxel to record for FWER thresholding. |
pThreshold |
(default=0.05) Voxel-wise threshold. |
clusterPerm |
logical (default=FALSE), whether to perform permutation based cluster thresholding. |
mask |
(default=NA) antsImage reference mask used for cluster computations. |
voxindx |
(default=NA) indices of voxels to put in mask |
samplemask |
(default=NA) antsImage used to extract voxels back in a matrix. |
clusterPermThreshold |
(default=0.05) threshold for cluster selection after obtaining cluster size distrubution. |
showInfo |
display info messagges when running the function. |
... |
other arguments received from |
List of objects returned:
statistic
- vector of statistical values
pvalue
- vector of pvalues
zscore
- vector of zscores
perm.vector
- (optional) vector of permuted statistics
perm.FWERthresh
- (optional) permutation threshold established
from the distribution of perm.vector
perm.clusterThreshold
- (optional) permutation threshold established
from the distribution of perm.vector
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.