# NOT RUN {
# }
# NOT RUN {
# Generation of data to use
data.sim <- jointSurrSimul(n.obs=300, n.trial = 10,cens.adm=549.24,
alpha = 1.5, theta = 3.5, gamma = 2.5, zeta = 1, sigma.s = 0.7,
sigma.t = 0.7, cor = 0.8, betas = -1.25, betat = -1.25,
full.data = 0, random.generator = 1, seed = 0,
nb.reject.data = 0)
###--- Joint surrogate model ---###
joint.surro.sim.MCGH <- jointSurroPenal(data = data.sim, int.method = 2,
nb.mc = 300, nb.gh = 20, print.iter = T)
# Example of loocv taking into accountn ony trial 2 trials (1 and 3)
dloocv <- loocv(joint.surro.sim.MCGH, unusedtrial = c(2,4:10))
plot(x = dloocv, xleg = "topright", bty = "n")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab