Open macartan opened 5 years ago
I'm happy to remove the constraint in difference_in_means()
because it is just kicking to lm_robust()
in the clustered case anyways.
I don't believe I have access to it today, but the simplification of the CR2 estimator for the case with a single binary predictor and equal sized clusters (e.g. the commonly-used se(SATE) estimator that is presented in GG on p.83), requires that treatment be unique within cluster.
If we removed this constraint, we should still match the GG estimator in the case with equal sized clusters and unique treatment within cluster. We would simply be allowing another case that the standard clustered DiM estimator could not accommodate.
The behavior of the difference_in_means command is still like this. I think this is confusing especially since the documentation states that lm_robust and difference_in_means are the same in the clustered case.
Treatment needs to be nested within clusters for differences_in_means but not for lm_robust
Should we not have the same behavior for both?