cdiagnose | R Documentation |
Graphically diagnose model residuals ("classic" version with ggplot2 graphics).
cdiagnose(model, fit_type = 'response', residual_type = 'response', se = FALSE, alpha = 1)
model |
An lm or glm object. |
fit_type |
String. Default is "response". Type of fitted values to use based on options in predict(). |
residual_type |
String. Default is "response". Type of residuals values to use based on options in resid(). |
se |
Boolean. To overlay standard errors. |
alpha |
Integer, [0, 1]. Points are more transparent the closer they are to 0. |
2x2 charts that closely resemble the output to plot(model.lm) with ggplot2 graphics.
https://github.com/robertschnitman/diagnoser and Raju Rimal (inspiration for Residuals vs. Leverage): https://rpubs.com/therimalaya/43190
model.lm <- lm(data = mtcars, formula = mpg ~ wt + gear) cdiagnose(model.lm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.