Learn R Programming

penppml (version 0.2.4)

cluster_matrix: Cluster-robust Standard Error Estimation

Description

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

Usage

cluster_matrix(e, cluster, x)

Value

Gives the XeeX matrix.

Arguments

e

Vector of residuals.

cluster

Vector of clusters.

x

Regressor matrix.