Regression - Diagnostic - StandardRPlot - Cook's Distance
Jump to navigation
Jump to search
Create a line/rug plot showing Cook's Distance for each observation
Code
var heading_text = "Cook's Distance";
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 shpw diagnostics for"});
cooks.distance <- plot(formInput, which = 4)
ret <- ""
class(ret) <- "visualization-selector"
ret