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, trim()` keep ID variables #254

Closed luizaandrade closed 11 months ago

luizaandrade commented 1 year ago

When we use the option trim, the resulting data set excludes any variables not mentioned in the do-files, including the IDs. Adding an option to list idvars and then including them in the trimmed version would be great.

bbdaniels commented 1 year ago

Suggested fix in #255. @luizaandrade to review and confirm that this works for the intended functionality!