knife_mean: Jackknife for means.

View source: R/misc_functions.R

knife_meanR Documentation

Jackknife for means.

Description

knife_mean is an internal function. Calculates arithmetic means by removing one observation at a time.

Usage

knife_mean(x)

Arguments

x

A numerical variable. Missing values are removed for the mean calculation.

Value

A vector with the mean calculations.

Examples

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

pubh documentation built on Oct. 8, 2024, 9:08 a.m.