| augment.glm {broom} | R Documentation |
This augment method wraps augment.lm().
## S3 method for class 'glm' augment(x, ...)
x |
A |
... |
Arguments passed on to
|
When newdata is not supplied augment.lm returns
one row for each observation, with seven columns added to the original
data:
.hat |
Diagonal of the hat matrix |
.sigma |
Estimate of residual standard deviation when corresponding observation is dropped from model |
.cooksd |
Cooks distance, |
.fitted |
Fitted values of model |
.se.fit |
Standard errors of fitted values |
.resid |
Residuals |
.std.resid |
Standardised residuals |
Some unusual lm objects, such as rlm from MASS, may omit .cooksd
and .std.resid. gam from mgcv omits .sigma.
When newdata is supplied, returns one row for each observation, with
three columns added to the new data:
.fitted |
Fitted values of model |
.se.fit |
Standard errors of fitted values |
.resid |
Residuals of fitted values on the new data |
Other lm tidiers:
augment.lm(),
glance.glm(),
glance.lm(),
tidy.glm(),
tidy.lm()