Description Usage Arguments Value
This function allows for calculation of clustered standard errors after running a standard linear regression with lm.
1 | clustered.se(model_result, data, cluster, level = 0.95, Tvar = "treatment")
|
model_result |
Model object returned by lm |
data |
The data set used in the original regression |
cluster |
The name of the clustering variable |
level |
The confidence level at which the p-value should be calculated |
Tvar |
The name of the treatment variable from the original regression |
A list containing a variance-covariance matrix, clustered standard errors and p-values for each coefficient in the original model, and lower and upper bounds for confidence intervals at each specified confidence level.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.