For my two variables below in the data example, I know this would be relatively simple to do where I get multiple tables for each subgroup. So one subgroup is if they are in some type of managerial position which corresponds with a 1 or 2 response:
Code:
tab satisf if jobtitle ==1 | jobtitle == 2
Code:
tab satisf if jobtitle == 3 | jobtitle == 4 | jobtitle == 7
But is there a way to, essentially, run those two (and eventually more) together where each column is a different subgroup that I create in this manner? Thank you very much in advance for any tips.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(jobtitle satisf) 2 5 19 5 5 5 19 5 4 5 1 5 19 5 1 5 7 5 17 5 5 5 3 5 3 5 1 5 1 5 19 5 11 5 3 5 1 5 7 3 1 5 2 5 2 . 2 5 2 5 3 5 8 5 7 5 12 5 2 5 2 5 5 5 1 5 7 5 4 5 1 5 3 3 3 5 4 5 3 5 2 5 3 5 2 5 9 5 4 5 19 5 1 5 13 5 3 5 1 5 2 5 10 5 8 5 19 5 17 5 5 5 3 5 5 5 5 5 1 5 1 5 2 5 1 5 5 3 9 5 3 5 17 5 9 5 5 5 3 5 1 5 5 5 1 5 3 5 3 5 2 5 7 5 1 5 5 5 19 6 5 5 2 5 3 5 11 5 3 5 4 5 4 5 9 5 9 5 1 5 17 6 2 5 4 5 5 1 2 5 2 5 8 5 17 5 5 1 3 5 end
0 Response to Tabs for multiple subgroups in one table
Post a Comment