worldbank / iefieldkit

Stata commands designed for Impact Evaluations field work. These are tools that are used during/after a survey in the field for data quality monitoring.
MIT License
38 stars 18 forks source link

iecodebook export: Incorporate [hashdata] functionality #124

Closed bbdaniels closed 4 years ago

bbdaniels commented 4 years ago

The functionality from https://github.com/bbdaniels/hashdata would potentially be the most useful integrated here; however we need to clean up the syntax used when a copy of the data is ordered. Currently the trim() syntax is used to order a copy and this can be improved, particularly since here there will be cases where only hashing is desired and no trimming is desired.

bbdaniels commented 4 years ago

Not documented yet. But now working. With the following approach as an extension to iecodebook export , trim():

The hash option requests the validation/creation of the .dtasig The reset option overrides an old .dtasig The TEXTonly option uses @luizaandrade's approach of writing a text log, and skips the creation of the Excel sheet in this case. (Specifying textonly without hash currently means the command would do nothing...)

So there are still some missing pieces, namely that this is only triggered on trim. Perhaps this should be moved outside that option (setting the hash component totally independently and requiring a separate save option or something...??? it is complex)

bbdaniels commented 4 years ago

Ok have made substantial progress on this. Going to open PR and ask @luizaandrade and @MRuzzante to experiment!