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
Identifying coworkers in spell dataI have a dataset of worker employment spells, and I would like a general way to identify an individu…
Problem with margins and vce(unconditional)Dear All, I am running a svy:probit and typing margins, vce(unconditional) later. However, I am ge…
Simpson paradox, how to visualize positive tendency when the coefficient doesnt outweigh absolute coefficient of the neg. general tendency?Hi everyone, I would like to have your opinion of the following. I am performing a regression on th…
Cosinor analysis on iodine dispersionHello stata users, I am trying to perform a cosinor analysis to determine the effect of season on i…
Psmatch2 standard errorsI have conducted psm using kernel density matching. Since this produces multiple matches i need to a…
Subscribe to:
Post Comments (Atom)
0 Response to Getting the average of all combinations of different variables in stata
Post a Comment