The easiest way to compute clustered standard errors in R is the modified summary()
. I added an additional parameter, called cluster,
to the conventional summary()
function. This parameter allows to specify a variable that defines the group / cluster in your data. The summary output will return clustered standard errors. Here is the syntax:
summary(lm.object, cluster=c("variable"))
Continue reading Clustered Standard Errors in R