Learn R Programming

WPC (version 1.0)

surv.rate: Calculate Survival Rate at a Fix Time Point

Description

This function is implemented in the npr.wpc.est function.

Usage

surv.rate(data, cutoff, wts, xwin)

Arguments

data
Data with event - the survival time, a positive numerical vector with no missing values; censor- censor information, a vector with 1 indicating an event and 0 indicating right censored
cutoff
This is to define the interesting data cutoff time point to see the relationship between time-to-events and markers.
wts
This is to specify the weight function, which will be applied to the Kaplan Meier approach for the survival rate estimates within each window. There are four options provided for this weight function: "uniform", "normal", "trunnormal", and "huber".
xwin
A series of marker values which will be assigned to the estimated survival rates within each window.

References

Yang H., Tang R., Hale M. and Huang J. (2016) A visualization method measuring the performance of biomarkers for guiding treatment decisions Pharmaceutical Statistics, 15(2), 1539-1612

See Also

npr.wpc.est