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

Duplicated non-alphanumeric values in idvar crashes ieduplicates without helpful error #213

Closed kbjarkefur closed 2 years ago

kbjarkefur commented 2 years ago

To store information about all duplicate pairs it creates locals on the format difflist_id where id is replaced with the duplicated value. This was discovered in a data set with duplicated id values . (Probably imported from csv/excel with missing value as numeric and then made string during append). That made the command trying to create a local named difflist_. which is not a valid local name.

kbjarkefur commented 2 years ago

The solution is probably to try to use the information the command currently store in the difflist_id local right way instead of storing it there.

kbjarkefur commented 2 years ago

The solution to the issue #172 (handling long IDs) also solves this.

kbjarkefur commented 2 years ago

Closing as this is a duplicate issue and the issue is already solved but not yet published