I am using rreg (among other robustness checks) for my results. I however want to use clustered standard errors for rreg since my baseline regressions report clustered errors. I am using the following approach (simplified version is presented here) to indirectly weight observations generated by rreg and then using vce(cluster) option:
The coefficient estimates of both the above regressions are identical, as they should be. The only difference is in the standard errors. Any comments on whether this can be done?
Code:
rreg y x, gen(weights) reg y x [w=weights], vce(cluster clustervar)
Comment