bootglm | R Documentation |
This function implements a parametric bootstrap (for a GLM). Unlike the standard parametric bootstrap, where we use the MLE to generate new responses, here user can input a coefficient vector beta. The function calls the the function boot_fun, which implements the resized bootstrap once, and returns a vector of MLE.
bootglm(X, beta, family, b_boot, verbose)
X |
A covariate matrix of size n * p. |
beta |
A vector of length n. Coefficients where the parametric bootstrap is applied. |
family |
An object of class family. Besides the usual definition of glm family (see [stats::family]),
|
b_boot |
An integer of number of bootstrap samples. |
verbose |
Print progress if |
mle_boot a matrix of size p * b_boot of the bootstrap MLE Returns error if the bootstrap MLE does not exist more than 20
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.