Joint Modeling of Competing Risks and Current Status Data: An Application to Spontaneous Labor Study.
- ReadData.R : Read the Consortium on Safe Labor Data.
- Lognormal_sim.R : One example of generating simulation data with log-normal frailty model and estimating parameters using maximum likelihood method.
- Weibull_sim.R : One example of generating simulation data with Weibull frailty model and estimating parameters using maximum likelihood method.
- Auxiliary functions : real_splines.R & sim_splines.R. These two are slightly different because of different starting point.
- sim_model.R : generates the explanatory plots for simulation scenarios.
- Lognormal_real.R : Based on the real data from nulliparous women and multiparous women, fit the joint model and estimate the parameters including the effect of baseline covariates. We assume three different Cox model depending on baseline covariates and assume log-normal distribution for frailty model.
- Weibull_real.R : Based on the real data from nulliparous women and multiparous women, fit the joint model and estimate the parameters including the effect of baseline covariates. We assume three different Cox model depending on baseline covariates and assume Weibull distribution for frailty model.
- gradient.R : Diagnostic gradient function for modal diagnostics.
- Read result : Lognormal_readresult.R & Weibull_readresult.R
- Rcpp folder : contains c++ file for calculating likelihood function used for
optim
inR
. Using c++ (Rcpp) substantially boosts the speed.
- Seed folder : includes the seed information used for generating bootstrap samples for rel data.
- lognormal_real folder : contains (bootstrap) estimates from each join model assuming log-normal distribution for frailty model.
- Weibull_real folder : contains (bootstrap) estimates from each join model assuming Weibull distribution for frailty model.
- Explanatory figures for real data : NullWithout, MultiWithout, null_hist, & multi_hist_beyond10.
- Explanatory figures for simulation study : baselines & frailty.
- Real data results