Inference for categorical variables

R ile Anket Verilerini Analiz Etme

Kelly McConville

Assistant Professor of Statistics

NHANES: Race and Diabetes

Barplot of distribution of diabetes by race

R ile Anket Verilerini Analiz Etme

Inference: Chi-square Test

Null Hypothesis: Prevalence of diabetes is not associated with race.

Alternative Hypothesis: Prevalence of diabetes is associated with race.

svychisq(~Race1 + Diabetes, 
         design = NHANES_design, 
         statistic = "Chisq")
    Pearsons X^2: Rao & Scott adjustment

data:  svychisq(~Race1 + Diabetes, design = NHANES_design, 
statistic = "Chisq")
X-squared = 37.708, df = 4, p-value = 0.0001177
R ile Anket Verilerini Analiz Etme

Let's practice!

R ile Anket Verilerini Analiz Etme

Preparing Video For Download...