R/InvMillsRatio.R

Defines functions InvMillsRatio

InvMillsRatio <- function(x, lt) {

  ans <- exp(dnorm(x, log=TRUE) - pnorm(-x, lower.tail=lt, log.p=TRUE))
  return(ans)
}

Try the daarem package in your browser

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

daarem documentation built on March 23, 2022, 9:06 a.m.