IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Analyzing Survey Data in R

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Construct and display a frequency table
___ <- ___(~___,
           design = NHANES_design)
___
Modifica ed esegui il codice