I estimated the following Poisson regression in R:
poissmod2 <- glm(aerobics$y ~ factor(aerobics$x1) + aerobics$x3 + aerobics$x4,
family = poisson))
No problem so far. The next step, however, is to determine a 95% confidence interval for aerobics$x1
.
I have tried following two codes:
confint.default(poissmod2,"aerobics$x1")
and
confint.default(poissmod2,"factor(aerobics$x1)")
For both codes I get a confidence interval 'Na-Na'... This code, however, seems to work for non-factor variables.
Does anyone have an idea what I am doing wrong?