View source: R/misc_functions.R
rank_leverage | R Documentation |
rank_leverage
ranks observations by their leverage (influence) on the arithmetic mean.
rank_leverage(x)
x |
A numeric variable. Missing values are removed by default. |
A data frame ranking observations by their leverage around the mean.
jack_knife
.
x <- rnorm(10, 170, 8)
x
mean(x)
rank_leverage(x)
x <- rnorm(100, 170, 8)
mean(x)
head(rank_leverage(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.