IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Analyzing Survey Data in R

Visualizza il corso

Istruzioni dell'esercizio

  • Run a t-test on SleepHrsNight and Gender using svyttest(). Make sure you understand the output!

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Run a survey-weighted t-test
svy___(formula = ___,
       design = NHANES_design)
Modifica ed esegui il codice