newTestSurvRec (version 1.0.2)

Qsearch.Fractil: Calculate the survival time to a selected quantile

Description

Auxiliary function called from Dif.Surv.Rec function. Given a FitSurvRec object we obtain the quantile from a survival function using PHS o WC estimators.

Usage

Qsearch.Fractil(fr, qr = 0.5)

Arguments

fr

FitSurvRec object

qr

quantile. Default is 0.5

Value

Returns the time in a selected quantile

References

Martinez C., Ramirez, G., Vasquez M. (2009). Pruebas no parametricas para comparar curvas de supervivencia de dos grupos que experimentan eventos recurrentes. Propuestas. Revista Ingenieria U.C.,Vol 16, 3, 45-55.// Martinez, C. (2009). Generalizacion de algunas pruebas clasicas de comparacion de curvas de supervivencia al caso de eventos de naturaleza recurrente. Tesis doctoral. Universidad Central de Venezuela (UCV). Caracas-Venezuela.

See Also

FitSurvRe, Survrecu, is.Survrecu

Examples

Run this code
# NOT RUN {
XL<-data(MMC.TestSurvRec)
fit<-FitSurvRec(Survrecu(id,time,event)~1,data=MMC.TestSurvRec)
# 35th percentile from the survival function
Qsearch.Fractil(fit,q=0.35)
	 
# }

Run the code above in your browser using DataLab