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 Dec. 15, 2020, 3:01 a.m.