ss_jk: Sum of squares for Jackknife.

View source: R/misc_functions.R

ss_jkR Documentation

Sum of squares for Jackknife.

Description

ss_jk is an internal function called by jack_knife. It calculates the squared difference of a numerical variable around a given value (for example, the mean).

Usage

ss_jk(obs, stat)

Arguments

obs

A numerical vector with no missing values (NA's).

stat

The value of the statistic that is used as a reference.

Value

The squared difference between a variable and a given value.

Examples

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

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