-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
How to turn off CIs for check_model? #642
Comments
@IndrajeetPatil We could add a |
That would be good. I wonder if we should also try to detect if number of discrete fitted values is small/all the predictors are categorical and then omit the linearity plot and change the homogeneity plot to be something better for categorical regression ? |
Upon further testing, it's not always just the SE that causes issues with visualization. Sometimes the LOESS curve bends in odd ways between discrete values that produces the same effect as seen above. So in addition to
|
We should probably just have alternative visualizations for categorical models. The current plots really only work for models with continuous predictors so that there are numerous fitted values on the x axis |
I am using check_model() for a course, and it's a wonderful teaching tool. However, sometimes the confidence interval bands generated from the LOESS fit from geom_smooth() are ridiculously large, thereby expanding axes and making any potential pattern in the residuals unnoticeable. Is there a quick and easy way to turn off CIs so the y-axis behaves? I wasn't able to a discover a quick fix to this besides extracting components from check_model() and replotting with geom_smooth(se=F) or forcing it linear with geom_smooth(method="lm").
reprex:
Created on 2023-10-25 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: