Regression - Diagnostic - StandardRPlot - Influence Index

From Q
Jump to navigation Jump to search


VizIcon Influence Index.svg

Create index plots of studentized residuals, hat values, and Cook's distance

Code

var heading_text = "Influence Index";
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" });
library(car)
influence.index <- influenceIndexPlot(formInput, id = list(method = 'y', n = 5, cex = 1, location = 'lr'),  vars = c('Studentized', 'hat', 'Cook'))
ret <- ""
class(ret) <- "visualization-selector"
ret