cureph {curephEM} | R Documentation |
NPMLE for Logistic-CoxPH Cure-Rate Model
Description
Fit NPMLE for Logistic-CoxPH Cure-Rate Model
Usage
cureph (formula, formula2 , data, subset, na.action, init, control,
method = c("EM"), singular.ok = TRUE,
var = c("Louis"),...)
Arguments
formula |
a |
formula2 |
a |
data |
a |
subset |
expression indicating which subset of the rows of data should be used in the fit. All observations are included by default. |
na.action |
a missing-data filter function. This is applied to the model.frame after any subset argument has been used. Default is |
init |
a |
control |
Object of class |
method |
a character string specifying the method for estimation. The default method is the EM algorithm. |
singular.ok |
logical value indicating how to handle collinearity in the model matrix. If |
var |
a character string specifying the method for variance estimation. The default method is derived from the Louis formula. |
... |
other parameters passed to |
Details
The function can handle left truncation.
"BFGS-Newton"
method optimizes the discretized nonparametric likelihood directly. It has 3 steps. First, it roughly search for a local maximal by BFGS method with default setup. Second, it rescales the parameters proportional to the reciprocal of current gradient in another BFGS optimization. Finally, it searches for a solution to the score equations through a Newton's method with Armijo line search.
The "EM"
method uses a “ghost copy” algorithm to accomodate left-truncation.
Both variance estimation methods are asymptotically correct, but they have undercoverage issue in case of a small event number. "Louis"
is recommended among the two.
See Hou et al. (2016) for detail.
Author(s)
Jue (Marquis) Hou
References
Hou, J., Chambers, C. and Xu, R. (2016). "A nonparametric maximum likelihood approach for partially observed cured data with left truncation and right-censoring". To be submitted.
See Also
cureph.object
, summary.cureph
, survpred.cureph
Examples
# A simulated data set
data('sim.cureph.data')
# Or you may generate another one
sim.cureph.data = cureph.simgen()
# Check out the true coefficients and baseline survival
attributes(sim.cureph.data)
# Fit logistic-CoxPH cure-rate model
fit=cureph(Surv.cure(time,time2,event,origin=0,end=20)~Z1+Z2+Z3+Z4,data=sim.cureph.data)
# Check out the summary
summary(fit)
# Baseline cummulative hazard
basehaz.cureph(fit)