Hello,
My dependent variable (methylation level) is expressed as a proportion so I am fitting a glm model with family(binomial) link(logit) and robust variance estimation, based on the method proposed by Pake and Wooldrige (1996). For ease of interpretation, I would like to present the adjusted means and the adjusted mean difference between levels of my independent variable (overweight/obese vs. normal BMI), coded as 0 and 1. When I run the glm model followed by the margins command, one of the returned predicted means is a negative value, which is not possible for my data. So, my questions are, 1) Am I using the correct post estimation command? 2) Would I use the margins r. command to calculate the adjusted mean difference in proportions of my dependent variable? I have posted my code below, thank you very much for your help!
glm methylation i.over_ob (other covariates), family(binomial) link(logit) robust
margins over_ob (here is where I get a negative value for over_ob = 1)
margins r.over_ob, contrast
My dependent variable (methylation level) is expressed as a proportion so I am fitting a glm model with family(binomial) link(logit) and robust variance estimation, based on the method proposed by Pake and Wooldrige (1996). For ease of interpretation, I would like to present the adjusted means and the adjusted mean difference between levels of my independent variable (overweight/obese vs. normal BMI), coded as 0 and 1. When I run the glm model followed by the margins command, one of the returned predicted means is a negative value, which is not possible for my data. So, my questions are, 1) Am I using the correct post estimation command? 2) Would I use the margins r. command to calculate the adjusted mean difference in proportions of my dependent variable? I have posted my code below, thank you very much for your help!
glm methylation i.over_ob (other covariates), family(binomial) link(logit) robust
margins over_ob (here is where I get a negative value for over_ob = 1)
margins r.over_ob, contrast
Comment