Hello,
I am running a linear binomial regression model, with survey weights. I am using GLM, example syntax below:
I want to include fixed effects for survey year and state of residence. Normally, I would use xtset, and then "fe" for fixed effects. I have not found a way of using "xt" with glm. So I tried this:
But the model does not converge. I am not sure if the xtset approach would make any difference with convergence. Is there a way to incorporate fixed effects with glm other than by putting them as variables directly into the model?
By the way - the reason I am using the unusual linear binomial model is to estimate an additive interaction with a binary dependent variable. Otherwise I would just use logit or something similar.
Thanks!
I am running a linear binomial regression model, with survey weights. I am using GLM, example syntax below:
Code:
svy: glm y i.x1##i.x2 z, fam(bin) link(id)
Code:
svy: glm y i.x1##i.x2 z i.year i.state, fam(bin) link(id)
By the way - the reason I am using the unusual linear binomial model is to estimate an additive interaction with a binary dependent variable. Otherwise I would just use logit or something similar.
Thanks!

Comment