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
Related Posts with Help: Generating a new variable on a subsample
Very weird spmap problem: "master data not sorted"Hello all Suddenly, I am having some unexplained problem with spmap: syntax which previously was wo…
Displaying results in full form - double formatHi All, I am using the following command, in stata 13.1 total subsidyamt, over(fiscal_year1) to c…
Year and industry fixed efffectsHello; I have a paneldataset of the S&P 500 from 2002 to 2019 and need to implement industry an…
An issue using esttab syntaxHello, I would like to show the `y' variable in excel when running each of the following regressions…
R2 difference from different regressionsArray Hello, i'm working on replicating Peters and Taylor(2016) i want to know how to compare R^2 fr…
Subscribe to:
Post Comments (Atom)
0 Response to Help: Generating a new variable on a subsample
Post a Comment