R/makeInt.R

makeInt <-
function(ints,hb, trans=NULL){
  up<-rep(ints[ ,2],times=hb)
  do<-rep(ints[,1], times=hb)
  do[which(do==0)]<-1.0001
  if(length(trans)>0){
    up<-trans(up)
    do<-trans(do)
  }#end if length(trans)
  
  out<-Surv(do,up,type='interval2')
  return(out)
}

Try the binequality package in your browser

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

binequality documentation built on May 2, 2019, 9:58 a.m.