checkAssumptions_ttest: Check t-test assumptions at each voxel

View source: R/lsm_ttestFast.R

checkAssumptions_ttestR Documentation

Check t-test assumptions at each voxel

Description

Routine to test statistical assumptions are met at each voxel for t-tests

Usage

checkAssumptions_ttest(lesmat, behavior, assumptionThreshold = 0.05,
  showInfo = TRUE, ...)

Arguments

lesmat

binary matrix (0/1) of voxels (columns) and subjects (rows).

behavior

vector of behavioral scores.

assumptionThreshold

(default=0.05) threshold to establish whether tests pass or fail. This threshold is applied at each voxel individually, no corretion for multiple comparison is applied.

showInfo

logical (default=TRUE), display info messages

...

arguments that are passed by upstream functions

Value

List of objects returned:

  • failVarianceTest - vector of logical values marking voxels that have different variance of behavioral scores in lesioned and non-lesioned individuals. Obtained using the var.test function.

  • failNormalityTest - vector of logical values marking voxels with abnormal distribution of behavioral scores either in lesioned or non-lesioned individuals. Obtained with the shapiro.test function.

Author(s)

Dorian Pustina


dorianps/LESYMAP documentation built on May 22, 2024, 1:41 p.m.