I am trying to extract the estimated variance-covariance matrix for specific variables after performing the Sun and Abraham’s estimator. Below is the regression model:
lost = feols(y ~ X1+ X2 + X3 + X4 + sunab(g, year) | id + year, data = impact, "cluster")
For instance, I need to exclude X1 and X2 when extracting the variance-covariance matrix. So, I use the following code:
sigma= vcov(lost, drop=c("X1|X2"))
Unfortunately, the matrix still contains X1 and X2. Any help would be much appreciated.