jack_knife: Ranks leverage observations from Jackknife method.

View source: R/misc_functions.R

jack_knifeR Documentation

Ranks leverage observations from Jackknife method.

Description

jack_knife Ranks the squared differences between mean values from Jackknife analysis (arithmetic mean estimated by removing one observation at a time) and the original mean value.

Usage

jack_knife(x)

Arguments

x

A numeric variable. Missing values are removed by default.

Value

Data frame with the ranked squared differences.

See Also

rank_leverage.

Examples

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

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

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