Learn R Programming

pubh (version 1.1.3)

leverage: 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.

Value

Variable with corresponding leverage estimations

Details

Estimates the leverage of each observation around the arithmetic mean.

Examples

Run this code
# NOT RUN {
x <- rnorm(10, 170, 8)
x
mean(x)
leverage(x)
rank_leverage(x)
# }

Run the code above in your browser using DataLab