Dear Statalists,
I have recently discovered the super useful reldist package, and I am currently exploring its functionalities. However, when I tried to add clustered standard errors to the relative pdf computation, Stata returned error. Below you can see the code I used:
reldist pdf vax_kid_ if children_018==1, by(treatment_herd) bw(0.06) vce(cluster ResponseId)
groupvar must define two groups
r(498);
The groupvar treatment_herd defines two groups, indeed the command gives me no error when run without the clustered standard errors. Any guess about what might be the problem? Thank you in advance!
I have recently discovered the super useful reldist package, and I am currently exploring its functionalities. However, when I tried to add clustered standard errors to the relative pdf computation, Stata returned error. Below you can see the code I used:
reldist pdf vax_kid_ if children_018==1, by(treatment_herd) bw(0.06) vce(cluster ResponseId)
groupvar must define two groups
r(498);
The groupvar treatment_herd defines two groups, indeed the command gives me no error when run without the clustered standard errors. Any guess about what might be the problem? Thank you in advance!
Comment