Exercise

Proportional stratified sampling

If you are interested in subgroups within the population, then you may need to carefully control the counts of each subgroup within the population. Proportional stratified sampling results in subgroup sizes within the sample that are representative of the subgroup sizes within the population. It is equivalent to performing a simple random sample on each subgroup.

attrition_pop is available; dplyr is loaded.

Instructions 1/3

undefined XP
    1
    2
    3
  • Get the counts of employees by Education level from attrition_pop, sorted by descending count
  • Add a percent column of percentages (100 times the count divided by the total count).