Description Usage Arguments Value Author(s) See Also Examples
View source: R/noe.compute.pv.R
This function computes the probability vector at the heart of the Noe recursions for calculating the exact coverage probability of a nonparametric confidence band for the population survivor function, based on its single-sample Kaplan-Meier estimate.
1 | noe.compute.pv(tn,tc)
|
tn |
a scalar quantity representing the total number of ordered uniform intervals for which a joint probability is required |
tc |
An ordered vector of endpoints between 0 and 1; its length is 2 |
A probability vector of length 2tn
+1 representing the partition of the
rectangular distribution corresponding to the endpoints listed in the vector tc
.
David E. Matthews dematthews@uwaterloo.ca
confband
, noe
, noe.compute.cgh
1 2 3 4 5 6 7 | ## Check of Noe recursion calculations.
a<-c(0.001340,0.028958,0.114653,0.335379)
b<-c(0.664621,0.885347,0.971042,0.998660)
cgh.mat<-noe.compute.cgh(4,a,b)
x<-cgh.mat[,1]
noe.compute.pv(4,x[-10])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.