lsm_ttest: T-tests for symptom mapping (slow)

Description Usage Arguments Value Author(s) Examples

View source: R/lsm_ttest.R

Description

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.

Usage

1
2
lsm_ttest(lesmat, behavior, var.equal = T, alternative = "greater",
  checkAssumptions = TRUE, showInfo = TRUE, ...)

Arguments

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 alternative='greater'. If the relationship in your data is inverted, use alternative='less', and if you don't have a relationship hypothesis data, use alternative='two.sided'.

checkAssumptions

Check whether t-test assumptions are met for every voxel

showInfo

logical (default=TRUE), display time-stamped info messages

...

other arguments received from lesymap.

Value

List of objects returned:

Author(s)

Dorian Pustina

Examples

1
2
3
4
5
6
7
{
set.seed(123)
lesmat = matrix(rbinom(200,1,0.5), ncol=2)
set.seed(123)
behavior = rnorm(100)
result = lsm_ttest(lesmat, behavior)
}

neuroconductor/LESYMAP documentation built on May 28, 2020, 7:27 p.m.