MLE of the tobit model | R Documentation |
MLE of the tobit model.
tobit.mle(y, tol = 1e-09)
y |
A vector with positive valued data and zero values. If there are no zero values, a simple normal model is fitted in the end. |
tol |
The tolerance level up to which the maximisation stops; set to 1e-09 by default. |
The tobin model is useful for (univariate) positive data with left censoring at zero. There is the assumption of a latent variable. Tthe values of that variable which are positive concide with the observed values. If some values are negative, they are left censored and the observed values are zero. Instead of maximising the log-likelihood via a numerical optimiser we have used a Newton-Raphson algorithm which is faster.
A list with three elements including
iters |
The number of iterations required for the Newton-Raphson to converge. |
loglik |
The value of the maximised log-likelihood. |
param |
The vector of the parameters. |
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
Tobin James (1958). Estimation of relationships for limited dependent variables. Econometrica. 26(1):24–36.
https://en.wikipedia.org/wiki/Tobit_model
gammamle, normal.mle
x <- rnorm(300, 3, 5)
x[ x < 0 ] <- 0 ## left censoring. Values below zero become zero
for (i in 1:50) tobit.mle(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.