Dear statalisters,
I have a database with 120 countries. From those countries, I have countries with more that 100 observations and less than 100 observations (100 is my mark).
What I want to do is a dummy variable equals 1 (one) if the country in that observation have more than 100 observations, and 0 (zero) if the country of that observation have less or equals to 100 observations.
My idea is run a regression conditioned to countries that only have more than 100 observations, something like:
Hope to be clear with my explanations.
I have Stata 15
Thank you very much for any help,
Alejandro
I have a database with 120 countries. From those countries, I have countries with more that 100 observations and less than 100 observations (100 is my mark).
What I want to do is a dummy variable equals 1 (one) if the country in that observation have more than 100 observations, and 0 (zero) if the country of that observation have less or equals to 100 observations.
My idea is run a regression conditioned to countries that only have more than 100 observations, something like:
Code:
regress IV DV control1 control2 if country=1
HTML Code:
With country=1 the country have more than 100 observations in total
I have Stata 15
Thank you very much for any help,
Alejandro
Comment