This function run all the simulations based on the structure of the basic data frame.
run_simulations(dataset, exposures, confounders, libraries, outcomes,
num.sim = 50, delta = c(0, 1), dr, newdata, show_times = FALSE,
show_num_sim = TRUE, save_time = FALSE, verbose = FALSE,
family = "gaussian", method = "method.NNLS")dataset with all variables
a vector with exposures
a vector with confounders
a vector of libraries to use
outcome<U+00B4>s name
number of simulations
a vector with two values
a vector with dose response values
the dataframe with new values
boolean parameter to see the time
boolean parameter to see the iteration of simulations
boolean parameter to save the time in the result list
boolean parameter to see the verbose of superlearner
a character parameter to describe the family of the model
a character parameter to choose the method in the superlearner
a list with 4 objects: a data frame with all simulations, risk and coefficients of the crossvalidation and the time of the proces.
libraries could be SL if we don't select nothing or 'SL.glm', 'SL.glm.interaction','SL.glmnet', 'SL.gam','SL.xgboost','SL.polymars','SL.randomForest'