R/Qsearch.Fractil.R

Qsearch.Fractil <-
function (fr, qr = 0.5) 
{
    tt <- c(0, fr$time)
    ss <- c(1, fr$surv)
    if (ss[length(ss)] > qr) 
        stop(paste("\noverall survival estimate does not fall below ", 
            qr))
    ans <- min(tt[ss <= qr])
    return(ans)
}

Try the newTestSurvRec package in your browser

Any scripts or data that you put into this service are public.

newTestSurvRec documentation built on May 2, 2019, 12:21 p.m.