Description Usage Arguments Details Value Note Author(s) References See Also Examples
An extended version of the Kaplan-Miere estimator.
1 2 3 4 |
time |
The observed time as a vector. |
censor |
The survival indicator, 1 if censored, 0 otherwise. |
boot |
logical, for calculating bootstrap confidence bounds. |
boot.control |
Bootstrap control parameters, as a list. |
fit.control |
Nonparametric fit control parameters. |
A detailed description, or refer the reader to a work.
The result of the function is an lbsurvfit
object, including step functions for the nonparametric survival curve fit and its bootstrap confidence bounds.
Bootstrapping is required if confidence bounds are needed.
V. P. Nia and P. J. Bergeron
Vardi Paper
1 2 3 4 5 6 7 8 | mydata=lbsample(20,family="exponential",par=list(rate=1))
noboot=lbfit.nonpar(time=mydata$time,censor=mydata$censor)
plot(noboot$survfun)
withboot=lbfit.nonpar(time=mydata$time,censor=mydata$censor,boot=TRUE)
x=seq(0,max(mydata$time)+1,length=500)
plot(x,withboot$survfun(x),type="l",col="blue",ylim=c(0,1))
points(x,withboot$lowerfun(x),type="l",col="red")
points(x,withboot$upperfun(x),type="l",col="red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.