Hello!

I am a beginner in Stata.

My problem:
I have a selection of countries in my dataset and I want to do a regression on only a subset of these countries.
In my case, my data contains the countries of the world, but I only want my regression to cover the region of North Africa.
But I am unable to figure out the exact command for this.

So basically I want to do something like this:

regress Y-variable X-variable if country_name == "Tunisia", "Egypt", "Morocco", "Tunisia", "Algeria", "Libya", "Sudan"

What am I missing here?



//Thank you