rank_leverage: Ranks observations by leverage.

View source: R/misc_functions.R

rank_leverageR Documentation

Ranks observations by leverage.

Description

rank_leverage ranks observations by their leverage (influence) on the arithmetic mean.

Usage

rank_leverage(x)

Arguments

x

A numeric variable. Missing values are removed by default.

Value

A data frame ranking observations by their leverage around the mean.

See Also

jack_knife.

Examples

x <- rnorm(10, 170, 8)
x
mean(x)
rank_leverage(x)

x <- rnorm(100, 170, 8)
mean(x)
head(rank_leverage(x))

pubh documentation built on Oct. 8, 2024, 9:08 a.m.