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 sampleSelection package in your browser

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

sampleSelection documentation built on Jan. 13, 2021, 7:49 p.m.