jackLM | R Documentation |
Jackknife (Leave-One-Out) method for parameter estimation and confidence interval of a linear model, according to Quenouille (1956).
jackLM(model, alpha = 0.05)
model |
an |
alpha |
the |
For all (x_i, y_i
) datapoints, a linear model is created by leaving out each entry successively, Y_{-i} = X_{-i}\beta + \varepsilon
. Pseudovalues from obtained and original coefficients are then created, P_{-i} = (N \cdot \beta) - ((N - 1) * \beta_{-i})
, from which the average \overline{P_{-i}}
and standard error \frac{\sigma}{\sqrt N}
is calculated to obtain the classical confidence interval \overline{X}_n \pm t_{\alpha,\nu}\frac{S_n}{\sqrt{n}}
.
A dataframe containg the estimated coefficients, their standard error, lower an upper confidence values and p-values.
Andrej-Nikolai Spiess
Notes on bias in estimation.
Quenouille MH.
Biometrika, 43, 1956, 353-36l.
## Example with single influencer (#18) and insignificant model (p = 0.115).
## Jackknife estimates are robust w.r.t. outlier #18.
set.seed(123)
a <- 1:20
b <- 5 + 0.08 * a + rnorm(20, 0, 1)
LM1 <- lm(b ~ a)
jackLM(LM1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.