Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: exit variable in opreg by Yasar, Raciborski, Poi (2008)
From
[email protected]
To
[email protected]
Subject
st: exit variable in opreg by Yasar, Raciborski, Poi (2008)
Date
Mon, 05 Mar 2012 10:00:57 -0600
Michel Serafinelli <[email protected]> is having trouble constructing
an exit variable based on the code provided in Yasar, Raciborski, and Poi
(2008, p.227).
> [On] pag[e] 227 of their article, YRP show the commands on how to construct
> the exit variable. However this does not seem to work for me.
We noticed that the code on page 227 is missing a line.
(code omitted)
. replace has_gaps = 0 if has_gaps==.
. by firmid : generate exit = survivor==0 & has95==0 & has_gaps!=1 & _n==_N
. replace exit = 0 if exit==1 & year==2002
should read
. replace has_gaps = 0 if has_gaps==.
. sort firmid year
. by firmid : generate exit = survivor==0 & has95==0 & has_gaps!=1 & _n==_N
. replace exit = 0 if exit==1 & year==2002
--Rafal
[email protected]
References
M. Yasar, R. Raciborski, and B. Poi. 2008. Production function estimation in
Stata using the Olley and Pakes method, 8(2), 221-231.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/