Skip to content
Prev 326954 / 398502 Next

glm - change offset to avoid NA?

On Jul 16, 2013, at 8:52 AM, Hermann Norpois wrote:

            
That seems implausilbe. I think you are just seeing the effect of a random selection creating a data situation where the interaction term is aliased with the others, in which case `glm` will set the coefficient to NA.
You said there was an "error", but you should have said that the results were unexpected. You can create an "error-condition" when this occurs with the `stop` function. And then do whatever remedial work is needed.