Adds predictions (and optionally confidence intervals) from one or more
glm models to a data frame.
Arguments
- data
A
data.framecontaining the new data for which predictions should be generated.- ...
One or more fitted model objects of class
"glm".- var
Optional character vector giving names for the new prediction columns. Must have the same length as the number of models supplied. If
NULL(default), names are generated automatically.- conf_int
Logical. If
TRUE, add confidence intervals for predictions. Default isFALSE.- alpha
Numeric between 0 and 1. Controls the confidence level for interval estimates. Default is
0.10, corresponding to a 90% confidence interval.
