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

Popular posts from this blog

4x4 Matrix in Python -

python - String indices must be integers and while issue -

python - PyInstaller UAC not working in onefile mode -