R/BinPer.R

Defines functions BinPer

Documented in BinPer

BinPer <-
function(posx, posy, ll, T)
{

puntx<-factor(as.numeric(countP(posx,ll, T=T)>0), levels=c(0,1))
punty<-factor(as.numeric(countP(posy,ll, T=T)>0), levels=c(0,1))


aux<-table(puntx,punty)
bper<-aux[2,2]/(sum(aux)-aux[1,1])

cat('Percentage of concordant intervals: ', round(bper,3), fill=T)
return(bper)
}

Try the IndTestPP package in your browser

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

IndTestPP documentation built on Aug. 29, 2020, 1:06 a.m.