BaşlayınÜcretsiz Başlayın

Equal counts stratified sampling

If one subgroup is larger than another subgroup in the population, but you don't want to reflect that difference in your analysis, then you can use equal counts stratified sampling to generate samples where each subgroup has the same amount of data. For example, if you are analyzing blood types, O is the most common blood type worldwide, but you may wish to have equal amounts of O, A, B, and AB in your sample.

attrition_pop is available; dplyr is loaded.

Bu egzersiz

Sampling in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Use equal counts stratified sampling to get 30 employees from each Education group
attrition_eq <- ___




# See the results
attrition_eq
Kodu Düzenle ve Çalıştır