IQSS / Zelig

A statistical framework that serves as a common interface to a large range of models
http://zeligproject.org
109 stars 43 forks source link

Tobit incorrectly interpretting data as right-censored #333

Closed justinwinikoff closed 4 years ago

justinwinikoff commented 5 years ago

Hello. The tobit model appears to incorrectly interpret left-censored observations as right-censored. The coefficients seem correct, but (I think) because of this I cannot cluster my standard errors.

> data(tobin)
> zelig(durable ~ age, model= 'tobit',data=tobin)
How to cite this model in Zelig:
  Christian Kleiber and Achim Zeileis. 2011.
  tobit: Linear regression for Left-Censored Dependent Variable
  in Christine Choirat, Christopher Gandrud, James Honaker, Kosuke Imai, Gary King, and Olivia Lau,
  "Zelig: Everyone's Statistical Software," http://zeligproject.org/
Model: 

Call:
z5$zelig(formula = durable ~ age, data = tobin)

Observations:
         Total  Left-censored     Uncensored Right-censored 
            20              0              7             13 

Coefficients:
            Estimate Std. Error z value Pr(>|z|)
(Intercept)   5.4969    10.7919   0.509    0.611
age          -0.1630     0.2312  -0.705    0.481
Log(scale)    1.7737     0.3081   5.758 8.52e-09

Scale: 5.893 

Gaussian distribution
Number of Newton-Raphson Iterations: 3 
Log-likelihood: -29.23 on 3 Df
Wald-statistic: 0.497 on 1 Df, p-value: 0.48082 

Is there anything I can do to fix this?