Dear members,

My dataset contains 4 countries and I'd like to run a regression using only one of those countries. Is there a Stata command that allows us to run a regression on only one specific country without having to drop the rest of the countries's observations? I'd like to keep the rest of the countries because I need to run the regression for each of them. Dropping the rest of countries would mean redoing all the preceding Stata commands again.

I understand that one possible option would be to create new columns containing only that specific country's data. However, I have a total of 17 variables. So that would mean creating 17*4 new columns!

Any help would be appreciated. Thank you.

Kind regards,
John