Description Usage Arguments Value Examples
Apply an exponential transformation to the confidence intervals and predictions from binomial and Poisson models.
1 |
preds |
The predictions based on the additive linear component of the model. |
ses |
The standard error(s) of the prediction. |
alpha |
The desired confidence level. |
df |
The desired degrees of freedom. |
The output is a matrix.
1 2 3 4 5 6 7 8 | data(campaign)
attach(campaign)
cmpgn.out <- glm(TOTCONTR ~ CANDGENDER + PARTY + INCUMCHALL + HISPPCT,
family=Gamma(link = 'log'), data=campaign)
newdat_gender <- data.frame(CANDGENDER = c('F','M'), PARTY= rep('Democrat',2),
INCUMCHALL=rep("C", 2), HISPPCT=rep(mean(campaign$HISPPCT),2))
preds_gender <- predict(cmpgn.out, newdata = newdat_gender, se.fit = TRUE)
glm.cis(preds_gender$fit, preds_gender$se.fit, 0.95,cmpgn.out$df.residual)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.