[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: How to estimat the parameters of a Tobit model with friction using stata

From   mariam ouchen <>
Subject   st: How to estimat the parameters of a Tobit model with friction using stata
Date   Wed, 19 Aug 2009 15:16:06 +0200

Good day  Stata-listers

I'm confronted to a problem to which i' haven't found yet a solution,
i'have to use stata to estimate  the parameters  of  a tobit model
with friction (this model is based on the limited dependant variable
(LDV) model of Tobin (1958) and Rosett (1959).

here is the model

y*t = xtβ + εt

·         yt = y*t - α1  if    y*t> α1

·          yt=0        if          α1< y*t< α2

·          yt = y*t- α2   if    y*t< α2

y*t   is the latent variable

with α1< 0 et  α2>0  and ε i.i.d, residuals of the estimation with
variance  σj². The parameters β, α1 α2 and σ are solved by maximising
a  log-likelihood function (a function i've written in the ado file)

Ln L =   ∑ ln (1/2πσj²)1/2 -∑(yjt+α1j-βjxt)²/2 σj² +


∑ ln (1/2πσj²)1/2 -∑(yjt+α2j-βjxt)²/2 σj²+


∑ln[Ф((α2j-βjxt)/ σj)- Ф((α2j-βjxt)/ σj)]


program my tobit_lf
version 10.0
	args lnf sigma alpha1 alph2 beta
	quietly replace `Lnf'=
	quitely replace `Lnf'=
	quitely replace `Lnf'=

to obtain the result i've put

ml model lf my tobit_lf  (  yt=xt) () [ i'konw that's not accurate]



What should I put as a  dependant variable?
what should i put in the equation to estimate alpha1 and alpha2?
is there any special command in my case?

I' could get the Code in Gauss, but i'need it in stata because of the
command Ml search which helps to get the starting points automatically

If someone can give me hand to   make the right code , please don't
hesitate , this is a real emergency

thanks a million in advance!!!!

Amato Allah OUCHEN

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index