CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Analyzing Survey Data in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Glimpse the data
glimpse(___)
Modifier et exécuter le code