Description Usage Arguments Details Value References Examples
Simulate data frames for joint modelling of longitudinal and time-to-event outcome.
1 2 3 |
n |
number of individuals. |
n_i |
number of observations per individual (before censoring). |
alpha |
association parameter. |
beta |
coefficient beta vector for longitudinal outcome. |
betals |
coefficient beta vector for shared predictor. |
betatimeind |
index of time-variable in shared predictor. |
lambda |
constant bazeline hazard. |
noninf |
noninf: number of non informative covariates for the longitudinal sub-predictor. |
noninfls |
noninfls: number of non informative covariates for the shared sub-predictor |
Simulates a data frame for joint models, considering a longitudinal and a shared predictor. For more details, see the Appendix of Waldmann et al. (2016).
A data frame.
Waldmann, E., Taylor-Robinson, D., Klein, N., Kneib, T., Pressler, T., Schmid, M., & Mayr, A. (2016). Boosting Joint Models for Longitudinal and Time-to-Event Data. arXiv preprint arXiv:1609.02686.
1 2 3 4 5 6 7 8 9 10 | set.seed(123)
dat <- simJM(n = 400, n_i = 3, alpha = .5,
beta = c(1,2,3), betals = c(2,3,1),
betatimeind = 3, lambda = 0.6)
j1 <- JMboost(y = dat$y, Xl = dat$Xl, Xls = dat$Xls,
last = dat$last, delta = dat$delta,
id = dat$id, time = dat$time, lambda = 1, alpha = 0.1,
mstop_l = 100, mstop_ls = 100, step.length = 0.1,
betatimeind = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.