Learn R Programming

MRIaggr (version 1.1.5)

calcDistTissues: Compute descriptive statistics

Description

Compute the four first order statistics of the contrast parameters by cerebral structure.

Usage

"calcDistTissues"(object, param, param.membership, num = NULL, hemisphere = "both")

Arguments

object
an object of class MRIaggr. REQUIRED.
param
the contrast parameters to consider. character vector. REQUIRED.
param.membership
the parameters indicating the probabilistic membership of each observations to each cerebral structure. character vector.
num
the slices to use. numeric vector or NULL.
hemisphere
the hemisphere to use. character.

Value

An data.frame containing in row the various cerebral structures and in columns the various moments for each contrast parameter.

Details

ARGUMENTS : Information about the num argument can be found in the details section of initNum.

Information about the hemisphere argument can be found in the details section of selectContrast.

See Also

calcTissueType to compute a probabilistic classification of the brain observations in WM/GM/CSF.

Examples

Run this code
## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
	   
## compute the distribution of DWI and T2 FLAIR for the CSF, WM, GM and lesion observations
res <- calcDistTissues(MRIaggr.Pat1_red, param = c("DWI_t0","T2_FLAIR_t2"),
                        param.membership = c("CSF","WM","GM","MASK_DWI_t0")
)

Run the code above in your browser using DataLab