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.
If used repeatedly, iecodebook tries to overwrite the survey label and redefine the survey variable. This causes an uninformative error and stops execution. This will also happen if these variables already exist in any dataset. This behavior can be resolved with the generate() option but this is not apparent from the error and is clunky to resolve after encountering as written.
Suggested fix:
[ ] Remove generate() from template subcommand
[ ] Have generate() overwrite the survey name later
[ ] Give meaningful error if generate() not specified and survey exists in data as var or lab
If used repeatedly,
iecodebook
tries to overwrite thesurvey
label and redefine thesurvey
variable. This causes an uninformative error and stops execution. This will also happen if these variables already exist in any dataset. This behavior can be resolved with thegenerate()
option but this is not apparent from the error and is clunky to resolve after encountering as written.Suggested fix:
generate()
fromtemplate
subcommandgenerate()
overwrite thesurvey
name latergenerate()
not specified andsurvey
exists in data as var or lab