R/cover.R

Defines functions cover

Documented in cover

cover<-function(x,sobj){				

# Count the number of distinct events

k<-sum(sobj$n.event>0)

# Initialize the matrix of a's & b's

abmat<-matrix(0,k+1,2)

# Take x as the current critical value

cv<-x

abmat<-exact(sobj,cv)

cp<-noe(k,abmat[k:1,1],abmat[(k+1):2,2])

cp}

Try the kmconfband package in your browser

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

kmconfband documentation built on May 2, 2019, 2:49 p.m.