Description Usage Arguments Details Value Author(s) See Also Examples
This function computes the exact coverage probability of a specified nonparametric confidence band for the population survivor function derived from a single-sample Kaplan-Meier estimate
1 | cover(x,sobj)
|
x |
scalar, a quantile of the exact null distribution. |
sobj |
a one-sample Kaplan-Meier estimate, provided in the form of a |
The function uses the current value of the scalar x
to calculate the lower
and upper limits corresponding to each distinct value of the sample-specific Kaplan-Meier estimate, via the
function exact
. If there are k changes of value in the Kaplan-Meier estimate,
there will be k+1 pairs of limits. Then, using k ordered, uniform intervals
derived from these k+1 pairs, the coverage probability that corresponds to the current
value of x
is evaluated using Noe's recursions, via the function noe
The function returns the calculated value of the coverage probability
for the exact nonparametric confidence band, derived from the single-sample
Kaplan-Meier estimate, that corresponds to quantile x
David E. Matthews dematthews@uwaterloo.ca
1 2 3 4 5 6 7 | ## Calculate the coverage probability for an exact, nonparametric confidence
## band for leukemia patient remission experience based on data from 20
## patients receiving Treatment B when the value of x is 0.3
time<-c(1,1,2,2,3,4,5,8,8,9,11,12,14,16,18,21,27,31,38,44)
status<-c(rep(1,16),0,1,0,1)
fit<-survfit(Surv(time,status)~1)
cover(0.3,fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.