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.
Diese Übung ist Teil des Kurses
Analyzing Survey Data in R
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Glimpse the data
glimpse(___)