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

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)