Description Usage Arguments Value Examples
Creates a dataframe of bootstrapped standard errors given a regression, allowing the user to create confidence intervals, calculate means, plot graphs, etc.
1 | bootstrap_lm(df, model, n = 1000)
|
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 |
A list of three data frames with bootstrapped estimates of coefficients, standard errors, and summary statistics.
1 | bootstrap_lm(mtcars, mpg ~ cyl + am + hp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.