Description Usage Arguments Value Author(s) References Examples
Provides diagnositic graphs and visual cut points for identification of points that are univaraite outliers, high leverage, regression outliers, and/or influential
1 | modelCaseAnalysis(Model, Type = "RESIDUALS", Term = NULL, ID = row.names(Model$model))
|
Model |
a linear model produced by |
Type |
Type = c('RESIDUALS', 'UNIVARIATE', 'HATVALUES', 'COOKSD', 'DFBETAS', 'INFLUENCEPLOT' 'COVRATIO') RESIDUALS (default) = regression outliers, UNIVARIATE = univariate outliers, HATVALUES = leverage, COOKSD = model influence, DFBETAS= individual parameter influence, INFLUENCEPLOT= leverage X influence, COVRATIO = inflation of SEs. |
Term |
Term from model to display. Used only by DFBETAS. DEFAULT is NULL with all terms displayed |
ID |
Use to identify points. Default = row.names(Model$model). NULL = no identification |
Side effect of plot is main goal for function. Also returns a list with Rownames and CaseAnalysis Values for cases identified. No list returned if DFBETAS without single term identified.
John J. Curtin jjcurtin@wisc.edu
Fox, J. (1991). Regression diagnostics. SAGE Series (79) Quantitative Applictions in the Social Science.
1 2 3 4 5 6 7 | ##NOT RUN
##m = lm(FPS~BAC+TA, data=BAC)
##Cases = modelCaseAnalysis(m,'RESIDUALS')
##BAC[Cases$Rownames,]
##modelCaseAnalysis(m,'DFBETAS')
##modelCaseAnalysis(m,'DFBETAS', 'assets')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.