lsm_BM: Brunner-Munzel tests for symptom mapping (slow)

View source: R/lsm_BM.R

lsm_BMR Documentation

Brunner-Munzel tests for symptom mapping (slow)

Description

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.

Usage

lsm_BM(lesmat, behavior, permuteNthreshold = 9, nperm = 10000,
  alternative = "greater", showInfo = TRUE, ...)

Arguments

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 lesymap.

Value

List of objects returned:

  • statistic - vector of statistical values

  • pvalue - vector of pvalues

  • zscore - vector of zscores

Author(s)

Dorian Pustina

Examples

{
set.seed(123)
lesmat = matrix(rbinom(200,1,0.5), ncol=2)
set.seed(123)
behavior = rnorm(100)
result = lsm_BM(lesmat, behavior)
}


dorianps/LESYMAP documentation built on June 1, 2024, 2:12 a.m.