Method for generating parametric bootstrap estimates from a fitted model.

bootstrap(object, B = 1000, extra_param = FALSE, ...)

Arguments

object

an object representing a fitted model (see 'Details').

B

an integer for number of bootstrap replicates (default 1,000).

extra_param

if TRUE, bootstrap is also performed for extra parameters (see 'Details').

...

additional optional arguments to pass to ibControl.

Value

A matrix p (size of parameter) times B of bootstrapped estimates.

Details

This method is a simple wrapper around the ib method where number of iterations is set to 1.

See also

Author

Samuel Orso

Examples


## bootstrap poisson regression
counts <- c(18,17,15,20,10,20,25,13,12)
outcome <- gl(3,1,9)
treatment <- gl(3,3)
pois_fit <- glm(counts ~ outcome + treatment, family = poisson())

## make 100 paramtric bootstrap replicates
boot_dist <- bootstrap(pois_fit, B = 100)