R/lambda.R

Defines functions lambda

Documented in lambda

### inv mills ratio.
### Should accept all kind of values, including far off range.
lambda <- function(x) {
   as.vector(ifelse(x > -30, dnorm(x)/pnorm(x), -x))
                           # can we prove it?
}

Try the sampleSelection2 package in your browser

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

sampleSelection2 documentation built on May 2, 2019, 6:08 p.m.