Hello everybody,
If indeed glm does not converge because of perfect predictors, it should be possible to solve the problem by using an adapted version of the method described in
Santos Silva and Tenreyro (2010), On the Existence of the Maximum Likelihood Estimates in Poisson Regression, Economics Letters, 107(2), pp. 310-312.
Assuming that the problem is only caused by perfect predictors of zeros, exactly the same steps can be used:
1 - run a simple ols regression of Y on X using only the observations with 0 < Y.
2 - run the glm model including only the regressors that were not excluded due to perfect collinearity in the ols regression
3 - if any of the regressors excluded are dummies, the observations for which they are equal to 1 should be excluded in the glm regression
If indeed glm does not converge because of perfect predictors, it should be possible to solve the problem by using an adapted version of the method described in
Santos Silva and Tenreyro (2010), On the Existence of the Maximum Likelihood Estimates in Poisson Regression, Economics Letters, 107(2), pp. 310-312.
Assuming that the problem is only caused by perfect predictors of zeros, exactly the same steps can be used:
1 - run a simple ols regression of Y on X using only the observations with 0 < Y.
2 - run the glm model including only the regressors that were not excluded due to perfect collinearity in the ols regression
3 - if any of the regressors excluded are dummies, the observations for which they are equal to 1 should be excluded in the glm regression
Comment