glm_boot | R Documentation |
Estimates the MLE distribution of a GLM using the resized bootstrap method
glm_boot(
glm_fit,
simulate_fun = NULL,
s_interval = 0.02,
b_var = 5,
b_boot = 100,
robust_est = FALSE,
verbose = TRUE,
filename = NA
)
glm_fit |
A glm object returned by [stats:glm] function. It should contain the covariates x and responses y, i.e., the output of glm(.., x = T, y = T). |
simulate_fun |
A function to simulate new responses (the inputs are an observation matrix and a vector of coefficients). |
s_interval |
A numeric value of increment of the sequence of shrinkage factors |
b_var |
A numeric value of the number of parametric bootstrap samples at each s to estimate signal strength parameter |
b_boot |
A numeric value of the number of bootstrap samples to estimate the bias and variance of the MLE. |
robust_est |
If |
verbose |
Print progress if |
filename |
filename If a file name is provided, then save the plot of |
The input GLM object.
\beta_s = s_\star\cdot \hat{\beta}
satisfies \var(X^\top \beta_s)\approx \gamma^2
.
The estimated signal strength parameter \gamma
.
A numeric value of the estimated inflation of the MLE, i.e., \hat{\beta}/\alpha
is approximately unbiased of the true model coef.
A numeric value of the estimated std.dev. of the MLE.
A matrix of size p*b_boot
(p is the number of variables) of the bootstrap MLE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.