Regression - Diagnostic - StandardRPlot - Scale-Location

From Q
Jump to navigation Jump to search
VizIcon Scale Location.svg

Create a plot of the square root of the absolute standardized residuals by fitted values

Code

var heading_text = "Scale-Location"
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" });
scale.location <- plot(formInput, which = 3)
ret <- ""
class(ret) <- "visualization-selector"
ret