Description Usage Arguments Details Value Author(s) References Examples
This function performs the delete-1 jackknife in linear models as described by Quenouille (1956) <doi:10.2307/2332914>. Linear models incorporating categorical and/or quantitative predictor variables with a quantitative response are allowed. The function output creates the jackknife sampling distribution for each coefficient. Estimation is performed via least squares.
1 |
formula |
input a linear model formula of the form |
data |
optionally, input the name of the dataset where variables appearing in the model are stored. |
Currently, the user must manipulate the output of the function to conduct hypothesis tests and create confidence intervals for the predictor coefficients. More convenient/streamlined output is expected in future package versions.
bootEstParam |
matrix containing the jackknife parameter estimates. Each column corresponds to a
coefficient. There are |
origEstParam |
vector containing the least squares parameter estimates. These are the same as
estimates obtained from |
Megan Heyman, heyman@rose-hulman.edu
Quenouille, M. (1956). "Notes on bias in estimation." Biometrika. Vol. 61, pp.1-15
1 2 3 4 5 6 7 8 9 10 11 12 | Seed <- 14
set.seed(Seed)
y <- rnorm(20) #randomly generated response
x <- rnorm(20) #randomly generated predictor
JackObj <- jackknife(y~x) #perform the jackknife
#plot the sampling distribution of the slope coefficient
hist(JackObj$bootEstParam[,2], main="Jackknife Sampling Distn.",
xlab="Slope Estimate")
#jackknife 95% CI for slope parameter (percentile method)
quantile(JackObj$bootEstParam[,2], probs=c(.025, .975))
|
2.5% 97.5%
-0.16524454 0.08242192
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.