datagenPaper: Simulation settings from Gonzalez Ginestet et al. (2019+)....

View source: R/datageneration.R

datagenPaperR Documentation

Simulation settings from Gonzalez Ginestet et al. (2019+). "Stacked IPCW Bagging bagging: a case study in the HIV care registry"

Description

Function that generates data of the different simulation studies presented in the accompanying paper. This function requires the gam package to be installed.

Usage

datagenPaper(J, n, frac.train, tao = 26.5, simulation, scenario)

Arguments

J

number of simulated data sets

n

number of sample size

frac.train

percentange train data set. A number between 0 and 1.

tao

time point of interest

simulation

study indicator. It takes on 1 and 2.

scenario

scenario indicator. It takes on 1, 2, 3 and 4.

Value

A list with the following elements:

train.data

simulated train data set

test.data

simulated test data set

and the true AUC

Examples

DT=datagenPaper(J = 1 , n = 1250, frac.train = 0.8, simulation=1, scenario=4)

pablogonzalezginestet/ensBagg documentation built on Aug. 25, 2023, 3:23 a.m.