write.statMap: Write the statMap objects out

View source: R/statmap.R

write.statMapR Documentation

Write the statMap objects out

Description

Given a statMap object and a directory write the objects as stat.nii.gz, coef.nii.gz and sqrtSigma.nii.gz

Usage

write.statMap(
  x,
  outdir,
  images = TRUE,
  sqrtSigma = TRUE,
  statMethod = c("p", "S", "chisq")
)

Arguments

x

the statMap object to write out

outdir

the directory to write into

images

Logical indicating whether or not to write out the nifti images.

sqrtSigma

Logical indicating whether or not to write out the objects needed for bootstrapping.

statMethod

Passed to stat.statMap to specify how to write the statistical image. p= -log10(p) * sign(coef), S=RESI, chisq=chi-squared statistic

Value

a list of what was written


simonvandekar/pbj documentation built on Nov. 3, 2023, 9:33 a.m.