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

NHANES weights

Let's explore the NHANES survey weights. As we said, minorities are more likely to be sampled. To account for this, their survey weights will be smaller since they represent less people in the population. Let's see if this is reflected in the data.

Bu egzersiz

Analyzing Survey Data in R

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

Egzersiz talimatları

  • Using dplyr, construct a table of mean survey weights, WTMEC4YR, by race, Race1. Call the table tab_weights.
  • Print the table and observe the differences in the average weights.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

#Create table of average survey weights by race
___ <- NHANESraw %>%
  group_by(___) %>%
  summarize(avg_wt = ___)

#Print the table
___
Kodu Düzenle ve Çalıştır