R/find.p.joint.R

Defines functions find.p.joint

Documented in find.p.joint

find.p.joint <-
function(c.joint, c1, pi.samples, pi.markers) {
  p.joint <- integrate(p.joint.fun, lower=-Inf, upper=-c1, subdivisions=1000, c1=c1, c.joint=c.joint, pi.samples=pi.samples)$value +
           integrate(p.joint.fun, lower=c1, upper=Inf, subdivisions=1000, c1=c1, c.joint=c.joint, pi.samples=pi.samples)$value 
  result <- p.joint
  result
  }

Try the twoStageGwasPower package in your browser

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

twoStageGwasPower documentation built on May 29, 2017, 12:11 p.m.