Exercise

Stratified designs in R

Now let's practice specifying a stratified sampling design, using the dataset apistrat. The schools are stratified based on the school type stype where E = Elementary, M = Middle, and H = High School. For each school type, a simple random sample of schools was taken.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Glimpse the data and notice the weights are stored in pw and fpc contains the total number of schools in each school type.