| psh_fit | R Documentation |
Estimates the survival function of the inter-occurrence times of recurrent event data with the generalized product-limit estimator (PLE) of Peña, Strawderman and Hollander (2001).
psh_fit(x, tvals)
x |
a survival recurrent event object, see |
tvals |
optional vector of times at which the survival function is also evaluated. |
The estimator computed by this function is the nonparametric estimator of the inter-event time survivor function under the assumption of a renewal or IID model. It generalizes the product-limit estimator to the situation where the event is recurrent. For details and the theory behind the estimator, please refer to Peña, Strawderman and Hollander (2001).
A list with class survfitr containing:
number of units or subjects observed.
number of events of each subject.
uncensored gap times, ordered by subject.
censored gap time of each subject.
ordered distinct event times.
number of events at each distinct time.
matrix of units at risk at each distinct time (rows are subjects).
survival estimate at each distinct time.
standard error of the survival estimate.
copy of the tvals argument.
survival estimate at the tvals times.
Peña, E.A., Strawderman, R. and Hollander, M. (2001). Nonparametric Estimation with Recurrent Event Data. Journal of the American Statistical Association 96, 1299–1315.
survfitr(), Survr()
data(MMC)
fit <- psh_fit(Survr(MMC$id, MMC$time, MMC$event))
fit
plot(fit, conf.int = FALSE)
# compare with the gamma frailty MLE
fit <- mlefrailty_fit(Survr(MMC$id, MMC$time, MMC$event))
lines(fit, lty = 2)
# and with Wang-Chang
fit <- wc_fit(Survr(MMC$id, MMC$time, MMC$event))
lines(fit, lty = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.