Statmap: Create Statistical Parametric Mapping (SPM)

Description Usage Arguments Value Author(s) Examples

View source: R/Statmap.R

Description

It creates the statistical parametric mapping in NIfTI format.

Usage

1
2
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., constrasts 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 NIfTI file. The path does not must end with /.

name

character string. The name of the map NIfTI file that will be used.

Pmap

Boolean value. If TRUE the SPM of the pvalues is returned. Default @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 non 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

Angela Andreella

Examples

1
2
3
4
5
6
7
## 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 Nov. 25, 2021, 9:23 a.m.