[R] negative predicted values in poisson glm

From: P. Olsson <olsson1_at_gmail.com>
Date: Thu 19 Jan 2006 - 00:58:26 EST


Dear R helpers,
running the following code of a glm model of the family poisson, gives predicted values < 0. Why?

library(MASS)
library(stats)
library(mvtnorm)
library(pscl)

data(bioChemists)
poisson_glm <- glm(art ~ fem + mar + kid5 + phd + ment, data = bioChemists, family = poisson)
predicted.values = predict(poisson_glm)
range(predicted.values)

Thank you in advance for any hints.
Best regards,
P. Olsson

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 19 02:05:00 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:06 EST