R/PicCalc.R

Defines functions PicCalc

Documented in PicCalc

PicCalc <-
function(data){
  data[is.na(data)]<-0
  a<-rowSums(data==1)
  b<-rowSums(data==-1)
  return(mean(1-(a^2+b^2)/(a+b)^2,na.rm=TRUE))
}

Try the GeneticSubsetter package in your browser

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

GeneticSubsetter documentation built on May 2, 2019, 3:56 a.m.