lsm_BM | R Documentation |
Lesion to symptom mapping performed on a prepared matrix. Brunner-Munzel tests are performed using each column of the matrix to split the behavioral scores in two groups.
lsm_BM(lesmat, behavior, permuteNthreshold = 9, nperm = 10000,
alternative = "greater", showInfo = TRUE, ...)
lesmat |
binary matrix (0/1) of voxels (columns) and subjects (rows). |
behavior |
vector of behavioral scores. |
permuteNthreshold |
(default=9) Voxels lesioned in less than this number will undergo permutation based thresholding. See Medina et al 2010. |
nperm |
Number of permutations to perform when needed. |
alternative |
(default="greater") It is assumed that healthy voxels (0) have greater behavioral scores. If your data follow an inverted relationship choose "less" or "two.sided". |
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
Dorian Pustina
{
set.seed(123)
lesmat = matrix(rbinom(200,1,0.5), ncol=2)
set.seed(123)
behavior = rnorm(100)
result = lsm_BM(lesmat, behavior)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.