Hi statalisters,
it looks like when you run the following model:
dsregress does not generate an error and simply provide the double lasso estimator without correcting for clustering.
The correct code should be (as you probably know):
Yet, why does stata authorize the first coding? In a classical regression reg Y T, cluster(clustervar) and regression reg Y T, vce(cluster clustervar) provide the same SE.
I think this should not be allowed since it is a source of error.
What do you think?
it looks like when you run the following model:
Code:
dsregress Y T, controls(X1 X2...) cluster (clustervar)
The correct code should be (as you probably know):
Code:
dsregress Y T, controls(X1 X2...) vce(cluster clustervar)
I think this should not be allowed since it is a source of error.
What do you think?

Comment