Creating Percentages for table groupings
I am trying to create a percentage for my dataset that will give me the percent of observations in multiple levels of groupings. So if my data has 2 levels of grouping, then the table would look like this: group1 group2 count percent_Grouping1(A or B) percent_Grouping2(AA,AB,BA,BB) a a 10 33.33% 45.45% a a 4 13.33% 18.18%…