lm.parboot: Parametric bootstrap for linear regression model

View source: R/lm.parboot.R

Parametric bootstrap for linear regression modelR Documentation

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

lm.drop1, leverage, pc.sel, mmpc

Examples


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


Rfast2 documentation built on Aug. 8, 2023, 1:11 a.m.