Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lm.parboot

Parametric bootstrap for linear regression model


Description

Parametric bootstrap for linear regression model.

Usage

lm.parboot(x, y, R = 1000)

Arguments

x

The predictor variables, a vector or a matrix or a data frame.

y

The response variable, a numerical vector with data.

R

The number of parametric bootstrap replications to perform.

Details

An efficient implementation of the parametric bootstrap for linear models is provided.

Value

A matrix with R columns and rows equal to the number of the regression parameters. Each column contains the set of a bootstrap beta regression coefficients.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Efron Bradley and Robert J. Tibshirani (1993). An introduction to the bootstrap. New York: Chapman \& Hall/CRC.

See Also

Examples

y <- rnorm(50)
x <- matrix( rnorm( 50 * 2), ncol = 2 )
a <- lm.parboot(x, y, 500)

Rfast2

A Collection of Efficient and Extremely Fast R Functions II

v0.0.9
GPL (>= 2.0)
Authors
Manos Papadakis, Michail Tsagris, Stefanos Fafalios and Marios Dimitriadis.
Initial release
2021-03-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.