View source: R/piecewiseExp_profile_loglik_tau.r
piecewiseExp_profile_loglik_tau | R Documentation |
In a piecewise Exponential survival model, the estimates for the value of the hazard function can be given explicitly, see Fang and Su (2011), and can be computed using lambda_j_Exp
. The values of the change points can then be computed using the profile log-likelihood function. The function piecewiseExp_profile_loglik_tau
computes the value of this profile log-likelihood function and can be used together with optim
to compute the change points \tau_1, \ldots, \tau_{k}
.
piecewiseExp_profile_loglik_tau(tau, time, event)
tau |
Single number or vector with values of change points. |
time |
Event times, censored or observed, in months. |
event |
Censoring indicator, 1 for event, 0 for censored. |
Value of the profile likelihood function.
This function is not intended to be invoked by the end user.
Kaspar Rufibach (maintainer)
kaspar.rufibach@roche.com
Fang, L., Zheng, S. (2011). A hybrid approach to predicting events in clinical trials with time-to-event outcomes. Contemp. Clin. Trials, 32, 755–759.
Goodman, M.S., Li, Y., Tiwari, R.C. (2011). Detecting multiple change points in piecewise constant hazard functions. J. Appl. Stat, 38(11), 2523–2532.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.