bootstrap_parametric_linear: Perform parametric bootstrap for linear models without...

View source: R/bootstrap_lm.R

bootstrap_parametric_linearR Documentation

Perform parametric bootstrap for linear models without constant variance.

Description

This is a workhorse function which performs a parametric bootstrap without assuming constant variance. This is not meant to be called by the user directly.

Usage

bootstrap_parametric_linear(fit, reps)

Arguments

fit

lm 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.


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