-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.resid column doesn't exist with log output in augment.lm #937
Comments
@alexpghayes, read on an old issue (can't find it now) you writing that we need to document more clearly when What are those criteria? Can just write what follows from the logic in |
Diagnostic:
resp <- safe_response(x, df)
if (!is.null(resp) && is.numeric(resp)) {
df$.resid <- (resp - df$.fitted) %>% unname()
} In turn, the response <- function(object, newdata = NULL) {
model.response(model.frame(terms(object), data = newdata, na.action = na.pass))
} But this function failes to return the response values when the response is transformed, because |
Yeah this is a bug, not intentional behavior. We do want residuals here. I'm surprised that |
This issue has been automatically closed due to inactivity. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Thanks to @rmtrane for noting the issue and supplying a reprex!
Created on 2020-09-18 by the reprex package (v0.3.0.9001)
The text was updated successfully, but these errors were encountered: