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)

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