resampleCoefficients.lm: Resample the coefficients of a linear model (lm)

View source: R/loadLm.R

resampleCoefficients.lmR Documentation

Resample the coefficients of a linear model (lm)

Description

Returns a new linear model given their original covariance and uncertainty

Usage

resampleCoefficients.lm(fit)

Arguments

fit

an lm object whose coefficients should be resampled

Details

(Although the name suggests otherwise, resampleCoefficients is not currently an S3 generic. You should refer to this function by its complete name.)

Value

A new lm object with resampled coefficients such that predict.lm() will make predictions reflecting those new coefficients. No other properties of the returned model are guaranteed.

References

http://www.clayford.net/statistics/simulation-to-represent-uncertainty-in-regression-coefficients/


USGS-R/loadflex documentation built on July 26, 2023, 9:54 p.m.