r - Hypothesis testing on GLM estimates -
i have model defined follows
m1 <- glm(t2d ~ bmi.groups, family = "binomial") where bmi.groups factor levels "normal", "overweight", "obese". using summary(m1) can see effect estimates of different factors , associated p-values.
if have hypothesis effect of obese 3 times higher of overweight. how can test in r?
i've tried recode factors numeric values 0, 1 , 4 respectively, i'm not sure if approach correct.
thanks!
Comments
Post a Comment