leverage: Leverage.

View source: R/misc_functions.R

leverageR Documentation

Leverage.

Description

leverage is an internal function called by rank_leverage.

Usage

leverage(x)

Arguments

x

A numeric variable. Missing values are removed by default.

Details

Estimates the leverage of each observation around the arithmetic mean.

Value

Variable with corresponding leverage estimations

Examples

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

pubh documentation built on Nov. 14, 2023, 1:08 a.m.