Regression - Diagnostic - Plot - Influence Index
Charts the studentized residuals, hat values, and Cook's distances for the observations in a regression model. The observation numbers of the five highest values on each of the measures are charted.
Example
The below example shows the output from running this diagnostic on a Poisson regression model used to predict days absent from school for a sample of school children in New South Wales, Australia.
Details
Roughly, in a model with n samples and p predictors (including the intercept), studentized residuals larger than 2 indicate possible outliers, hat values larger than 2*p/n indicate possible high leverage values, and Cook's distance values larger than 4/(n-p) indicate possible highly influential observations.
Acknowledgements
Uses the influenceIndexPlot function from the car package.
References
Fox, J., & Sanford, W. (2011). An R Companion to Applied Regression, Second Edition. Thousand Oaks CA: Sage.
Weisberg, S. (2014). Applied Linear Regression, Fourth Edition. Wiley.
Code
includeWeb("QScript R Output Functions");
const menu_location = "Regression > Diagnostic > Plot > Influence Index";
createDiagnosticROutputFromSelection(menu_location);
Displayr - Regression
Q Technical Reference
Q Technical Reference
Q Technical Reference > Multivariate Statistics
Q Technical Reference > Setting Up Data > Creating New Variables
Q Technical Reference > Updating and Automation > Automation Online Library
Q Technical Reference > Updating and Automation > JavaScript > QScript > QScript Examples Library > QScript Online Library
R Online Library
User Interface > Create Regression
User Interface > Regression