Generate a Data Table
Name of the table
list of data.tables upstream of the generated table. Defaults to empty list
numeric number of rows per parent record. Defaults to 4.
numeric proportion of how many of total are sampled. This is ignored for "CENSUS". Defaults to 0.5
character selection method used. Defaults to "CENSUS". Others like SRSWR or SRSSWOR can be used as well
character vector of the stratum names to be created. Defaults to c("U"), meaning not stratified.
numeric the expected mean of the target variable.
The variable is created using rnorm
and saved under
column ending with "y". Defaults to 5.
a data.table