Description Usage Arguments Value Examples
Computes a linear regression with standard errors corrected for heteroskedasticity, using the
1 | corrected_errors_lm(df, model, cluster_predictor, type = "HC")
|
df |
A dataframe R will pull the variables from to run the regression |
model |
A model object of class "lm" or a valid formula. |
cluster_predictor |
An (unquoted) variable to cluster the standard errors by. |
type |
An optional term for specifiying the estimator method, see vcovHC for options |
A data frame of model estimates.
1 | corrected_errors_lm(mtcars, mpg ~ hp + wt, cyl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.