Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: year dummy


From   "Rajesh Tharyan" <R.Tharyan@exeter.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: year dummy
Date   Fri, 28 Mar 2008 06:25:08 -0000

Hi,

I have a simple model, where I want to examine the effect of the regulation
on certain behaviour. As far as the regulation is concerned, I want to look
at two things. One is the enactment of the law (say year 2000) and the first
enforcement of the law (say year 2004). Is it right to create dummy
variables as below and run them in the same regression

gen enact= (year>2000)
gen enfor= (year>2004)
 
regards
rajesh

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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