genSimData: Generates data for simulation

Description Usage Arguments

View source: R/genSimData.R

Description

This function loads images specified in filelist and adds signal to the images. The amount and structure of signal is determined by betaimg and X. The output images are equal the images specified by filelist plus betaimg times the column of X that is not in Xred. This column is first residualized to Xred.

Usage

1
2
3
4
5
6
7
genSimData(
  files,
  outfiles = NULL,
  betaimg = NULL,
  mask = NULL,
  method = c("bootstrap", "synthetic")
)

Arguments

files

a vector of .nii or .nii.gz images.

outfiles

a vector of images to save the output.

betaimg

a parameter image that describes the association between X and the desired relationship images in filelist. The units of this are standardized so that it is like effect size. Currently, not supported.

mask

image mask where data exist.

method

Method to generate data, either "synthetic" (i.e. multivariate normal) or "bootstrap."


simonvandekar/NIsim documentation built on Oct. 12, 2020, 5:06 p.m.