pubh (version 1.1.16)

knife_mean: 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

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

Run the code above in your browser using DataLab