IF condition in panel dataset
Posted: Fri Feb 24, 2017 1:19 pm
Hi all,
I was wondering if anybody could help me with a question on using an IF statement in a panel dataset. I have a dummy dependent variable that takes on a value of 1 when a financial crisis occurs, and 0 otherwise. I would like to exclude a country from the panel for two years following a crisis, or two years following a 1. Any suggestions on the best way to do this are much appreciated!
I was wondering if anybody could help me with a question on using an IF statement in a panel dataset. I have a dummy dependent variable that takes on a value of 1 when a financial crisis occurs, and 0 otherwise. I would like to exclude a country from the panel for two years following a crisis, or two years following a 1. Any suggestions on the best way to do this are much appreciated!