ietoolkit
ietoolkit copied to clipboard
[iebaltab]: correct [stdev] option to re-calculate standard deviations
Sometimes I want to show standard deviations of variables in each group, not standard errors. It may be nice to have an option to show SDs rather than SEs. When choosing to use SDs, options such as vce and control are just redundant, so you may want to show error messages when SD option and other unnecessary options are both specified in the same command.
Sorry, I just found this feature...
Could it have been made more clear in any way?
I wanted exactly what "stdev" option does. But might be useful to give error messages when "stdev" and "vce" options are used simultaneously. In my understanding, "vce" option is used to calculate standard errors in some ways (eg. clustering at the village level), so specifying the "vce" option should be meaningless when "stdev" option is used. Standard deviations are just a dispersion in the data, no matter how they are sampled.
I trust you more than myself when it comes to what is expected or standard in research. @luizaandrade , what do you say? @bbdaniels maybe you can add something as well.
@kbjarkefur @mizuhirosuzuki is correct, in that the functionality needs to be fixed in Line 1589. Reverse-engineering the SD from the regression SE will be incorrect if vce()
is applied. This line should re-calculate the SD from data and potentially also remind the user that the SD is an exact measure of the data and not adjusted in any way (whereas the SE is an estimate).
https://github.com/worldbank/ietoolkit/blob/ea8f1e2d308d4b99c28f0d178c716b9cdb2002b9/src/ado_files/iebaltab.ado#L1589