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
Related Posts with Estimation using only one out of many categorical variables without dropping the rest
Error installing markstatI am consistently receiving the following error when I attempt to install markstat. I already instal…
Subsetting data using labelsHi, I have 15 big data sets where I want to keep only a few variables and I want to do the same to …
xtabond2 Hansen testHello I'm using system GMM to estimate TFP growth (gtfp_100) at regional level . I've a problem with…
ring setting of legend option and scheme modifiedDear Stata users, I like placing the legend inside the plot, so I modify scheme s2color as follows:…
Synth_runner: Interpret the statistical outcome and general questions [Stata]Hello together, I am started to work with stata and synth_runner package. I try to figure out differ…
Subscribe to:
Post Comments (Atom)
0 Response to Estimation using only one out of many categorical variables without dropping the rest
Post a Comment