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
Gen a variable in a loop: error "variable already defined"Hello everyone. I am trying to run this loop. I need to get two subsamples of frequent and occasion…
Reshape from wide to longHi everyone, I get data from Datastream and there are some firms having no data, i.e. price_14 "$$…
Working with multiple if conditionsDear Statalist, I am browsing a dataset with multiple if conditions. Is it possible to identify the…
Two way or one way fixed effect ??Hi, test to choose between model two way fixed effec or fixed effect ordinary ? i use STATA 14 …
Q-Q plots - why is Tukey Mean-Difference plots not an option in Stata?Q-Q plot combined with Tukey mean-difference plot - re 'Visualizing Data by Cleveland (1993) Dear A…
Subscribe to:
Post Comments (Atom)
0 Response to Estimation using only one out of many categorical variables without dropping the rest
Post a Comment