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

iedupicates : test for `'` in ID variable #178

Closed kbjarkefur closed 2 years ago

kbjarkefur commented 2 years ago

Having the character in ' in the ID variable causes a lot of weird errors. Instead of the weird errors, test if this is the case and provide a hepful message instead of allowing the weird errors to happen.

Suggest that ' can be cleaned with replace idvar= subinstr(idvar,"'","",.)

kbjarkefur commented 2 years ago

Throw error if used in var in ID_varname or uniquevars() throw non-breaking warning if used in keepvars()

kbjarkefur commented 2 years ago

test if this is solved in #172

kbjarkefur commented 2 years ago

the symbol ' works as of #172 but ` does not. Maybe just test for this one symbol and throw an error?

kbjarkefur commented 2 years ago

Merged in #214