Learn R Programming

micsr (version 0.1-1)

mills: 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)

Value

a numeric.

Arguments

x

a numeric

deriv

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