Survey-weighted t-test
Now let's tackle the question "Is there evidence that the average hours of nightly sleep differ by gender?" with a t-test.
Latihan ini adalah bagian dari kursus
Analyzing Survey Data in R
Petunjuk latihan
- Run a t-test on
SleepHrsNightandGenderusingsvyttest(). Make sure you understand the output!
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Run a survey-weighted t-test
svy___(formula = ___,
design = NHANES_design)