Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in specification of GLM in GEE blog post #10

Open
staceyhancock opened this issue Apr 21, 2022 · 0 comments
Open

Error in specification of GLM in GEE blog post #10

staceyhancock opened this issue Apr 21, 2022 · 0 comments

Comments

@staceyhancock
Copy link

I came across your blog post on GEEs: https://rlbarter.github.io/Practical-Statistics/2017/05/10/generalized-estimating-equations-gee/.

When defining a GLM, the only situation in which you can write the response variable as a mean plus error is if the response is normally distributed. In the case of other distributions (e.g., binomial, Poisson), the representation $Y_i = \mu_i + \epsilon_i$ is incorrect. For example, if $Y_i$ is binary, then there is no named probability distribution you could put on the error term in order for $Y_i$ to only take on values 0 and 1.

Instead the correct specification of a GLM involves specifying the probability distribution for $Y_i$, e.g., Binomial, Poisson, etc. Then specifying the model equation involving the mean response $\mu_i = E(Y_i)$, as you did in your post: $g(\mu_i) = X_i' \beta$.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant