pubh (version 1.3.2)

leverage: Leverage.

Description

leverage is an internal function called by rank_leverage.

Usage

leverage(x)

Value

Variable with corresponding leverage estimations

Arguments

x

A numeric variable. Missing values are removed by default.

Details

Estimates the leverage of each observation around the arithmetic mean.

Examples

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

Run the code above in your browser using DataLab