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
Augmented dickey fuller test on residuals?Hello, I am writing my bachelor thesis trying to measure the effect of cryptocurrency 'forks' (fork …
Performing PCA by groupDear all, I an trying to perform a PCA analysis by company on panel data. The goal is to create an…
Aggregating data and creating Fixed Effects and 1-hour lags of quarticsHi! I am currently working on a research project aiming at evaluating the effect of a speed-limit r…
Significance testing bysorting weeks with two groupsDear all, I have a problem with the significance testing of my results. I want to apply non parametr…
Command for GRS test in STATARespected sir, I have time series data on 25 portfolios excess return (dependent variable) and 6 ind…
Subscribe to:
Post Comments (Atom)
0 Response to Getting the average of all combinations of different variables in stata
Post a Comment