View source: R/regrInfluential.R
| regrInfluential | R Documentation |
This function combines a number of criteria for determining whether a
datapoint is an influential case in a regression analysis. It then sum the
criteria to compute an index of influentiality. A list of cases with an
index of influentiality of 1 or more is then displayed, after which the
regression analysis is repeated without those influential cases. A
scattermatrix is also displayed, showing the density curves of each
variable, and in the scattermatrix, points that are colored depending on how
influential each case is (note: see retainColors argument).
regrInfluential(formula, data, retainColors = FALSE, createPlot = TRUE)
## S3 method for class 'regrInfluential'
print(x, headingLevel = 3, ...)
formula |
The formule of the regression analysis. |
data |
The data to use for the analysis. |
retainColors |
Added in verion 26.11 when a change in an upstream package
( |
createPlot |
Whether to create the scattermatrix (requires the |
x |
Object to print. |
headingLevel |
The number of hash symbols to prepend to the heading. |
... |
Additional arguments are passed on to the |
A regrInfluential object, which, if printed, shows the
influential cases, the regression analyses repeated without those cases, and
the scatter matrix.
Gjalt-Jorn Peters & Marwin Snippe
Maintainer: Gjalt-Jorn Peters gjalt-jorn@userfriendlyscience.com
ufs::regrInfluential(
mpg ~ hp, mtcars
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.