mills: Compute the inverse Mills ratio and its first two derivatives

View source: R/tools.R

millsR Documentation

Compute the inverse Mills ratio and its first two derivatives

Description

The inverse Mills ratio is used in several econometric models, especially different flavours of tobit model.

Usage

mills(x, deriv = 0)

Arguments

x

a numeric

deriv

one of 0 (the default, returns the inverse Mills ratio), 1 (the first derivative) and 2 (the second derivative)

Value

a numeric.


micsr documentation built on May 29, 2024, 7:32 a.m.