bootstrap_lm: Creates a dataframe of bootstrapped standard errors given a...

Description Usage Arguments Value Examples

View source: R/bootstrap_lm.R

Description

Creates a dataframe of bootstrapped standard errors given a regression, allowing the user to create confidence intervals, calculate means, plot graphs, etc.

Usage

1
bootstrap_lm(df, model, n = 1000)

Arguments

df

A dataframe R will pull the variables from to run the regression

model

A model object of class "lm" or a valid formula.

n

Number of samples to take from the df and regressions to run

Value

A list of three data frames with bootstrapped estimates of coefficients, standard errors, and summary statistics.

Examples

1
bootstrap_lm(mtcars, mpg ~ cyl + am + hp)

jameshasbany/fastlm documentation built on July 26, 2020, 9:40 a.m.