How to calculate nonlinear (binary) Fixed-Effects Logit for Longitudinal/Panel Data?
问题 I'm trying to estimate child work based on a lagged variable on children's school aspirations. I'm deciding whether I should use glm or clogit to run my models (need fixed effect logits). When I run my glm, my coefficients are very different from my clogit. model1 <- glm(chldwork~lag_aspgrade_binned+age+as.factor(childid), data=finaletdtlag, family='binomial') GLM Output: Call: glm(formula = chldwork ~ lag_aspgrade_binned + age + as.factor(childid), family = "binomial", data = finaletdtlag)