cluster_matrix function

Cluster-robust Standard Error Estimation

Cluster-robust Standard Error Estimation

cluster_matrix is a helper for computation of cluster-robust standard errors.

cluster_matrix(e, cluster, x)

Arguments

  • e: Vector of residuals.
  • cluster: Vector of clusters.
  • x: Regressor matrix.

Returns

Gives the XeeX matrix.

  • Maintainer: Joao Cruz
  • License: MIT + file LICENSE
  • Last published: 2025-02-08