To be transferred into a separate package for Alan.
create_dataset(
data,
varsX = "",
varY = "",
config_code = NULL,
rename_vars = c(),
remove_vars = c(),
subset = "all",
ylevel = NULL,
primary_key = NULL,
verbose = F
)
Dataframe with X and Y variables.
Vector of variables to use as predictors.
Variable name to use as the outcome.
R code to create varsX and varY, which define the variables to use.
named vector, where names are the original names and values are the new names.
vector of strings for variables to remove from varsX
Code to further subset the data.
Target level of y if y is a factor variable.
Id variable, if any.
If TRUE display extra output.