Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65136

Counting observations and doing it for a different value of the variable

$
0
0
Hello, I have data that is separated by entity and each entity by municipality. It contains information of individuals such as age, school level, economic activity, among others, and I would like to count how many individuals from entity "x" and municipality "y" are between the age of 15-19, 20-24, 25-29, 30-34, 35-39, 40-44. But I would like to do it for all the municipalities in entity "x" and after that, do it for all entities.
I'm new with stata but from what I understand it must be done with a loop, but I do not know exactly what command to use. I would appreciated if you knew how to do this.
Thank you very much.

Viewing all articles
Browse latest Browse all 65136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>