Performs (semi)Parametric Bootstrap Joint ((s)PBJ) Spatial Extent Inference

pbjSEI(statMap, cfts = c(0.01, 0.005), nboot = 5000, kernel = "box")

Arguments

statMap

statMap object as obtained from computeStats.

cfts

Numeric vector of cluster forming thresholds to use. Consistent with other imaging software these thresholds are one tailed (e.g. p<0.01 imples z>2.32).

nboot

Number of bootstraps to perform.

kernel

Kernel to use for computing connected components. Box is default (26 neighbors), but Diamond may also be reasonable.

Value

Returns a list of length length(cfts)+4. The first four elements contain statMap$stat, statMap$template, statMap$mask, and statMap$df. The remaining elements are lists containing the following:

pvalues

A vector of p-values corresponding to the cluster labels in clustermaps.

clustermap

A niftiImage object with the cluster labels.

pmap

A nifti object with each cluster assigned the negative log10 of its cluster extent FWE adjusted p-value.

CDF

A bootstrap CDF.