Cluster-robust Standard Error Estimation
cluster_matrix
is a helper for computation of cluster-robust standard errors.
cluster_matrix(e, cluster, x)
e
: Vector of residuals.cluster
: Vector of clusters.x
: Regressor matrix.Gives the XeeX matrix.