R/get.d.R

Defines functions get.d

get.d = function(z.hat, egg) {
  # Get the value of d for a given value of z.hat
  d = (egg$a*exp(((-z.hat^2)/(2*egg$b^2)) + ((egg$c*z.hat)/(egg$b^2)) - ((egg$c^2)/(2*egg$b^2)))*sqrt(1 - z.hat)*sqrt(z.hat))/(pi*egg$b)
  return(d)
}

Try the egg package in your browser

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

egg documentation built on May 2, 2019, 5:55 p.m.