Skip to main content
added 4 characters in body; edited title
Source Link
user88
user88

generalized linear models query Why one can fit Poisson GLM on non-integer values in Stata?

I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SPSS won't run, because the Poisson dependent should have integer values. However, the glm with family Poisson and log link in Stata runs and just makes a note that the dependent has non-integer values. 

Why does Stata run the Poisson glm if the values of the dependent should be integers only?

generalized linear models query

I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SPSS won't run, because the Poisson dependent should have integer values. However, the glm with family Poisson and log link in Stata runs and just makes a note that the dependent has non-integer values. Why does Stata run the Poisson glm if the values of the dependent should be integers only?

Why one can fit Poisson GLM on non-integer values in Stata?

I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SPSS won't run, because the Poisson dependent should have integer values. However, the glm with family Poisson and log link in Stata runs and just makes a note that the dependent has non-integer values. 

Why does Stata run the Poisson glm if the values of the dependent should be integers only?

deleted 9 characters in body
Source Link
Nick Cox
  • 59.5k
  • 8
  • 136
  • 212

I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glmglm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SPSS won't run, because the Poisson dependent should have integer values. However, the glmglm with family Poisson and log link in Stata runs and just makes a note that the dependent has non-integer values. Why does Stata run the Poisson glmglm if the values of the dependent should be integers only?

Thank you all

I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SPSS won't run, because the Poisson dependent should have integer values. However, the glm with family Poisson and log link in Stata runs and just makes a note that the dependent has non-integer values. Why does Stata run the Poisson glm if the values of the dependent should be integers only?

Thank you all

I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SPSS won't run, because the Poisson dependent should have integer values. However, the glm with family Poisson and log link in Stata runs and just makes a note that the dependent has non-integer values. Why does Stata run the Poisson glm if the values of the dependent should be integers only?

Source Link
anna
  • 69
  • 6

generalized linear models query

I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SPSS won't run, because the Poisson dependent should have integer values. However, the glm with family Poisson and log link in Stata runs and just makes a note that the dependent has non-integer values. Why does Stata run the Poisson glm if the values of the dependent should be integers only?

Thank you all