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)

josie-athens/pubh documentation built on Feb. 3, 2024, 4:32 a.m.