Lesion to symptom mapping performed on a prepared matrix. Regressions are performed between behavior and each column in the lesmat matrix.

lsm_regres(lesmat, behavior)

Arguments

lesmat

matrix of voxels (columns) and subjects (raws).

behavior

vector of behavioral scores.

Value

List of objects returned:

  • statistic - vector of statistical values

  • pvalue - vector of pvalues

  • zscore - vector of zscores

Examples

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