Statmap: Create Statistical Parametric Mapping (SPM)

View source: R/Statmap.R

StatmapR Documentation

Create Statistical Parametric Mapping (SPM)

Description

Creates the statistical parametric mapping in NIfTI format.

Usage

Statmap(copes, alternative = "two.sided", path = getwd(), 
name = "map", Pmap = FALSE, mask = NULL)

Arguments

copes

List of NIfTI file. The list of copes, i.e., contrasts maps, one for each subject used to compute the statistical tests.

alternative

Character string. It refers to the alternative hypothesis, must be one of "two.sided" (default), "greater" or "lower".

path

Character string. Path to save the plot. The path does not must end with /. Default to getwd().

name

Character string. The name of file that will be used to save the plot. Default to "map".

Pmap

Boolean value. If TRUE the SPM of the p-values is returned. Default to FALSE.

mask

NIfTI file or character string. 3D array of logical values (i.e. TRUE/FALSE in/out of the brain). Alternatively it may be a (character) NIfTI file name. If mask=NULL, it is assumed that none of the voxels have to be excluded.

Value

Save the Statistical Parametric Mapping Nifti file in path with name specified in name.

Author(s)

Angela Andreella

Examples

## Not run: 
library(fMRIdata)
data(Auditory_copes)
data(Auditory_mask)
Statmap(copes = Auditory_copes, mask = Auditory_mask)

## End(Not run)

angeella/ARIpermutation documentation built on Sept. 12, 2024, 5:37 p.m.