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: Dummy variable for persistent values
From
Nicole Smit <[email protected]>
To
[email protected]
Subject
st: Dummy variable for persistent values
Date
Thu, 11 Jul 2013 21:33:03 +0200
Dear Statalist,
For my bachelor thesis I am attempting to create a dummy variable as opennes
indicator when the trade/GDP ratio of a specific country in a particular year is higher than eg. 60%. I can do this by: gen opentGDP=0
and then: replace opentGDP=1 if tradeGDP>=60
However, I would like to create a dummy for when the trade/GDP ratio is persistently higher than 60, so that actual openness of the country can be assumed instead of a random temporary increase in trade. Unfortunately I have not been able to find how I should do this.
Hope you can help,
Kind regards,
Nicole
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/