pubh (version 1.3.2)

ss_jk: 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)

Value

The squared difference between a variable and a given value.

Arguments

obs

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

stat

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

Examples

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

Run the code above in your browser using DataLab