Description Usage Arguments Value Examples
Computes a linear regression with clustered standard errors.
1 | clustered_errors_lm(df, model, cluster_predictor)
|
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. |
A data frame of model estimates.
1 | clustered_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.