Regression - Diagnostic - StandardRPlot - Residuals vs Leverage

From Q
Jump to navigation Jump to search
VizIcon Residuals Vs Leverage.svg

Create a plot of residuals versus leverage values<

Code

var heading_text = "Residuals vs Leverage";
if (!!form.setObjectInspectorTitle)
    form.setObjectInspectorTitle(heading_text);
else 
    form.setHeading(heading_text);

form.dropBox({name: "formInput", label: "Regression:", types: ["RItem:Regression"],
              prompt: "Select a Regression output to show diagnostics for" });
residuals.vs.leverage <- plot(formInput, which = 5)
ret <- ""
class(ret) <- "visualization-selector"
ret