View source: R/competing_risks.R
| fit_bd_competing | R Documentation |
Fits a parametric competing risks model assuming independent latent failure times, where each cause-specific baseline follows a 4-parameter Beta-Danish distribution.
fit_bd_competing(time, cause, n_starts = 5, method = "BFGS")
time |
Numeric vector of observed times. |
cause |
Integer vector of event causes. '0' indicates right-censored, and '1, 2, ..., m' indicate specific event causes. |
n_starts |
Integer; number of random starts for the joint optimization. |
method |
Optimization method passed to 'maxLik'. |
Under the assumption of independent latent failure times, the joint likelihood factorizes. The function first fits independent Beta-Danish models for each cause (treating other causes as censored) to find robust starting values, then optimizes the joint likelihood.
An object of class 'bd_competing'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.