weightedKM: Incident/Dynamic (I/D) ROC curve, AUC and integrated AUC...

Description Usage Arguments Details Value Author(s) References Examples

Description

This function estimates S(t) where sampling weights are permitted.

Usage

1
weightedKM(Stime, status, wt=NULL, entry=NULL) 

Arguments

Stime

Survival times when right censored data is considered. In case of interval censored data this is the end point for the time interval.

status

Survival status

wt

weight, default is unweighted

entry

entry times in case of interval censored data, default is NULL when right censored data is considered

Details

This function obtains survival function estimate where sampling weights are permitted.

Value

Returns a list of following items:

time

ordered unique failure times

survival

survival estimate at the unique failure times

Author(s)

Patrick J. Heagerty

References

Heagerty, P.J., Zheng Y. (2005) Survival Model Predictive Accuracy and ROC curves Biometrics, 61, 92 – 105

Examples

1
2
3
4
5
6
7
8
data(pbc)
## considering only randomized patients
pbc1 <- pbc[1:312,]
## create new censoring variable combine 0,1 as 0, 2 as 1
survival.status <- ifelse( pbc1$status==2, 1, 0)
survival.time <- pbc1$fudays
kout <- weightedKM(Stime=survival.time, status=survival.status)
KM.plot(kout$time,kout$survival)


Search within the risksetROC package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.