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.
Este ejercicio forma parte del curso
Analyzing Survey Data in R
Instrucciones del ejercicio
- Run a t-test on
SleepHrsNight
andGender
usingsvyttest()
. Make sure you understand the output!
Ejercicio interactivo práctico
Prueba este ejercicio completando el código de muestra.
# Run a survey-weighted t-test
svy___(formula = ___,
design = NHANES_design)