Skip to contents

gen_sample_dataset

Usage

gen_sample_dataset(
  D,
  nobs,
  response_type = c("categorical", "continuous"),
  data_mode = c("image", "surface"),
  spacing = c(1, 1, 1),
  blocks = 5,
  nlevels = 5,
  external_test = FALSE,
  ntest_obs = nobs,
  split_by = NULL,
  na_cols = 0
)

Arguments

D

the data dimension(s)

nobs

the number of observations

response_type

'categorical' or 'continuous'

data_mode

'image' or 'surface'

spacing

the voxel spacing

blocks

the number of 'blocks' in the data

nlevels

the number of category levels

external_test

is the test set 'external' to the training set

ntest_obs

number of test observations (only relevant if external_test is true)

split_by

compute performance measures for each level of factor

na_cols

number of columns with all NA values to add