ss_jk {pubh} | R 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)
[Package pubh version 1.3.2 Index]