Skip to main content
deleted 1 character in body
Source Link
User1865345
  • 10.3k
  • 12
  • 23
  • 40

I am trying to fit data with a GLM (poisson regression) in R. When I plotted the residuals vs the fitted values, the plot created multiple (almost linear with a slight concave curve) "lines". What does this mean?

library(faraway)
modl <- glm(doctorco ~ sex + age + agesq + income + levyplus + freepoor + 
            freerepa + illness + actdays + hscore + chcond1 + chcond2,
            family=poisson, data=dvisits)
plot(modl)
library(faraway)
modl <- glm(doctorco ~ sex + age + agesq + income + levyplus + freepoor + 
                freerepa + illness + actdays + hscore + chcond1 + chcond2,
                family=poisson, data=dvisits)
plot(modl)

enter image description here

I am trying to fit data with a GLM (poisson regression) in R. When I plotted the residuals vs the fitted values, the plot created multiple (almost linear with a slight concave curve) "lines". What does this mean?

library(faraway)
modl <- glm(doctorco ~ sex + age + agesq + income + levyplus + freepoor + 
            freerepa + illness + actdays + hscore + chcond1 + chcond2,
            family=poisson, data=dvisits)
plot(modl)

enter image description here

I am trying to fit data with a GLM (poisson regression) in R. When I plotted the residuals vs the fitted values, the plot created multiple (almost linear with a slight concave curve) "lines". What does this mean?

library(faraway)
modl <- glm(doctorco ~ sex + age + agesq + income + levyplus + freepoor + 
                freerepa + illness + actdays + hscore + chcond1 + chcond2,
                family=poisson, data=dvisits)
plot(modl)

enter image description here

edited tags
Link
gung - Reinstate Monica
  • 147.5k
  • 89
  • 406
  • 717
edited tags; edited tags
Link
whuber
  • 333.7k
  • 63
  • 792
  • 1.3k
Tweeted twitter.com/#!/StackStats/status/182929369075945472
update with code + figure from OP's comment
Source Link
chl
  • 54.4k
  • 23
  • 227
  • 388
Loading
Source Link
jocelyn
  • 281
  • 1
  • 3
  • 3
Loading