display.delstats {gvlma} | R Documentation |
Plot Deletion Statistics and Their P-Values for Assessment of Unusual Observations
Description
Creates a graph of the p-values associated with the deletion statistics
versus the deletion statistics with
unusual observations highlighted. This function is called by
plot.gvlmaDel
.
Usage
display.delstats(deletedStatvals, deletedpvals, nsd = 3,
TukeyStyle = TRUE, statname = "G", pointlabels)
Arguments
deletedStatvals |
The vector of deletion statistics, with i-th entry defined as the percent relative change in the global test statistic when the i-th observation is removed from the analysis. |
deletedpvals |
The vector of p-values associated with the global test statistics, with i-th entry being the p-value for the global test statistic with observation i removed. |
nsd |
Parameter that governs which observations are deemed
unusual. When |
TukeyStyle |
Controls how unusual observations are determined.
If |
statname |
A string used to label the |
pointlabels |
Character vector of same length as |
Details
Generally display.delstats
is not called directly, but rather
by the function plot.gvlmaDel
.
Plots the deletedpvals
versus the deletedStatvals
and adds
“control
limits” determined by the parameters nsd
and TukeyStyle
.
Points outside
the “control limits” (in either the deletedStatval
or
deletedpval
) are
labeled as unusual.
Value
A dataframe consisting of the unusual observations with variables
deletedStatval
and deletedpval
.
Author(s)
Slate, EH slate@stat.fsu.edu and Pena, EA pena@stat.sc.edu.
References
Pena, EA and Slate, EH (2006). “Global validation of linear model assumptions,” J.\ Amer.\ Statist.\ Assoc., 101(473):341-354.
See Also
Examples
data(CarMileageData)
CarMileageAssess <- gvlma(NumGallons ~ MilesLastFill + NumDaysBetw,
data = CarMileageData)
CarMileageDel <- deletion.gvlma(CarMileageAssess)
plot(CarMileageDel)
display.delstats(CarMileageDel$DeltaGlobalStat, CarMileageDel$GStatpvalue)
display.delstats(CarMileageDel$DeltaStat1, CarMileageDel$Stat1pvalue)