Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: Dummy variable for persistent values

From   Nicole Smit <>
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,
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index