Open ericmelse opened 2 years ago
Dear Professor Wilhelm,
In the Stata Journal dgmtest installation page: package st0600 from http://www.stata-journal.com/software/sj20-2 the following line is written:
emp.do requires a dataset that must be installed from ICPSR.
I tried to locate the record for this dta file in https://www.openicpsr.org/ but so far I was not able to find the source of your dta file: "cps-cleaned.dta" Could you provide a link to the web page where it can be downloaded or possibly add the dta file to your Github page of dgmtest?
Dear Professor Wilhelm,
With interest I am exploring your Stata package dgmtest.
Maybe you should include your own paper published in the Stata Journal in the References section of your Github page: Lee, Y. J., & Wilhelm, D. (2020). Testing for the presence of measurement error in Stata. The Stata Journal, 20(2), 382–404. https://doi.org/10.1177/1536867X20931002
Regarding dgmtest, would it be possible to apply weights (like [pw], [aw])? This is of importance with surveys that are not representative for a particular population but with weights are. My concern is how dgmtest would function in either case, or, could using dgmtest with the data without weights result in signalling measurement error whereas - if weights could be applied - the result might be that measurement error is much less an issue.
Time permitting I appreciate your comment on this subject.
Dear Eric Melse,
thank you for your interest in our Stata package.
In finite (i.e. small) samples, however, it is possible that sampling weights improve power of the test, so that the weighted version rejects while the unweighted version does not. Actually, the opposite can occur, too: the weighted test may have less power than the unweighted one. In small samples, which test is more powerful depends on the data-generating process.
I hope this helps. I suppose my conclusion is: if you have a reasonably large sample, you can apply the currently implemented (unweighted) version of the test.
Best, Daniel generatedataset.txt
Dear Professor Wilhelm,
With interest I am exploring your Stata package dgmtest.
Maybe you should include your own paper published in the Stata Journal in the References section of your Github page: Lee, Y. J., & Wilhelm, D. (2020). Testing for the presence of measurement error in Stata. The Stata Journal, 20(2), 382–404. https://doi.org/10.1177/1536867X20931002
Regarding dgmtest, would it be possible to apply weights (like [pw], [aw])? This is of importance with surveys that are not representative for a particular population but with weights are. My concern is how dgmtest would function in either case, or, could using dgmtest with the data without weights result in signalling measurement error whereas - if weights could be applied - the result might be that measurement error is much less an issue.
Time permitting I appreciate your comment on this subject.