Creating contingency tables
Let's practice constructing contingency tables with svytable(). HealthGen is a categorical variable of the participant's self-reported health for participants aged 12 years and older. Let's look at the relationship between HealthGen and Depressed.
Este exercicio faz parte do curso
Analyzing Survey Data in R
exercicio interativo prático
Tente este exercicio completando este código de exemplo.
# Construct and display a frequency table
___ <- ___(~___,
design = NHANES_design)
___