confidence interval for a factor coefficient in R -
i estimated following poisson regression in r:
poissmod2 <- glm(aerobics$y ~ factor(aerobics$x1) + aerobics$x3 + aerobics$x4, family = poisson))
no problem far. next step, however, determine 95% confidence interval aerobics$x1
.
i have tried following 2 codes:
confint.default(poissmod2,"aerobics$x1")
and
confint.default(poissmod2,"factor(aerobics$x1)")
for both codes confidence interval 'na-na'... code, however, seems work non-factor variables.
does have idea doing wrong?
Comments
Post a Comment