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

relm

Resample a Linear Model


Description

Fit a new model to data created using resample(model).

Usage

relm(model, ..., envir = environment(formula(model)))

Arguments

model

a linear model object produced using lm().

...

additional arguments passed through to resample().

envir

an environment in which to (re)evaluate the linear model.

See Also

resample()

Examples

mod <- lm(length ~ width, data = KidsFeet)
do(1) * mod 
do(3) * relm(mod) 
# use residual resampling to estimate standard error (very crude because so few replications)
Boot <- do(100) * relm(mod)
sd(~ width, data = Boot)
# standard error as produced by summary() for comparison
mod %>% summary() %>% coef()

mosaic

Project MOSAIC Statistics and Mathematics Teaching Utilities

v1.8.3
GPL (>= 2)
Authors
Randall Pruim [aut, cre], Daniel T. Kaplan [aut], Nicholas J. Horton [aut]
Initial release

We don't support your browser anymore

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