R/allelicOR.R

allelicOR <-
function(xtable){
	#a 2x3 table
	xtable2 = cbind(xtable[,1]*2 + xtable[,2], xtable[,2] + xtable[,3]*2)
	xtable2[1,1]*xtable2[2,2]/(xtable2[1,2]*xtable2[2,1])
}

Try the bimetallic package in your browser

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

bimetallic documentation built on May 2, 2019, 1:27 p.m.