View source: R/misc_functions.R
ss_jk | R Documentation |
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).
ss_jk(obs, stat)
obs |
A numerical vector with no missing values (NA's). |
stat |
The value of the statistic that is used as a reference. |
The squared difference between a variable and a given value.
x <- rnorm(10, 170, 8)
x
mean(x)
ss_jk(x, mean(x))
jack_knife(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.