A generic function to load data for statistical analysis.

load_data(
  bstr_data,
  atlas_filename = NULL,
  maskfile = NULL,
  hemi = "left",
  measure = "",
  smooth = 0,
  eddy = TRUE,
  roiids = NULL,
  roimeas = NULL,
  exclude_col
)

# S4 method for BstrData
load_data(bstr_data, roiids = NULL, roimeas = NULL, exclude_col)

# S4 method for BstrSBAData
load_data(bstr_data, atlas_filename, hemi, smooth)

# S4 method for BstrTBMData
load_data(bstr_data, atlas_filename, maskfile = NULL, smooth)

# S4 method for BstrDBAData
load_data(bstr_data, atlas_filename, maskfile = NULL, measure, smooth, eddy)

# S4 method for BstrROIData
load_data(bstr_data, roiids = NULL, roimeas = NULL, exclude_col)

Arguments

bstr_data

object of type BstrData()

atlas_filename

path name to the atlas

maskfile

path name to the mask file

hemi

chaaracter string denoting the brain hemisphere. Should either be "left" or "right" or "both".

measure

character specifying the brain imaging measure. If analyzing diffusion data, should be "FA".

smooth

numeric value denoting the smoothing level.

eddy

boolean for specifying if the diffusion images were eddy-current corrected or not.

roiids

numeric label identifier for the region of interest (ROI) type analysis.

roimeas

character string for the ROI measure. Should either be "gmthickness", "gmvolume", or "wmvolume".

exclude_col

character string for the column in demographics csv (contains 1 or 0 for each row) specifying the subjects to exclude. 1 denotes include, 0 denotes exclude.

Details

For the most part, the user will never have to call this function directly. Instead the user should call load_bstr_data().

See also