Description Usage Arguments Value
View source: R/coeftestCluster.R
Slightly modified function to cluster standard errors from glm
or lm
models.
Taken from: https://github.com/iangow-public/acct_data/blob/master/code/cluster2.R
1 | coeftestCluster(data, mod, namevec, cluster1, cluster2 = NULL, coeftest = T)
|
data |
Dataframe used to estimate model |
mod |
Model estimated using |
namevec |
Names of model variables |
cluster1 |
Clustering variable |
cluster2 |
Second clustering variable (optional) |
coeftest |
Boolean. Return |
coeftest
object or a clustered variance-covariance matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.