I'm trying to get the average hours used by individuals of different combinations of characteristics (gender, class section, work type, and affiliation). I already fixed my dataset such that gender assignment is binary, and the rest are also just up to 3 classifications. So, for example, I'll need to get the average hours of all females in class section 1, work type 3, and affiliation 2. And I'll need to do the same for males in other classes, work types, and affiliations. I assume that I can use the foreach command to do this, and then make loops, but I can not wrap my head around it right now
Sorry if this is unclear, I am also fixing my English haha
Related Posts with Getting the average of all combinations of different variables in stata
How to resolve numeric overflow while performing xtlogit,fe in stata?Dear all,
Apologies if this question seems to be a repetition of a previous question. I had made som…
How to match two datasets with constraints?Hello,
This is my first time posting on this forum so thank you to everyone in advance.
The simple…
How to remove " and "?Dear All, I have this dataset:
Code:
* Example generated by -dataex-. To install: ssc install datae…
Formatting Several Variables using a Loop
Hello
I have several variables (68) consisting of strings, integers, and floats. I am trying to for…
Identify life events in panel dataHi Statalist. I would like to be able to identify life events within a panel dataset with multiple w…
Subscribe to:
Post Comments (Atom)
0 Response to Getting the average of all combinations of different variables in stata
Post a Comment