bootstrap_parametric: Perform parametric bootstrap for generalized linear model.

View source: R/bootstrap_glm.R

bootstrap_parametricR Documentation

Perform parametric bootstrap for generalized linear model.

Description

This is the workhorse for the estimate_parameters() function when a generalized linear model is specified and parametric bootstrap is required. This is not meant to be called by the user directly.

Usage

bootstrap_parametric(fit, reps)

Arguments

fit

glm object defining the model for which the parameters are estimated.

reps

scalar; number of bootstrap replications to perform.

Value

matrix with the same number of rows as coefficients in fit and reps columns. Each row contains the bootstrap estimates of the corresponding parameters.

Examples

## Not run: 
fit <- glm(mpg ~ hp, data = mtcars)
bootstrap_parametric(fit, reps = 4999)

## End(Not run)


reyesem/IntroAnalysis documentation built on March 29, 2025, 3:29 p.m.