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

ietestform: Check for outdated syntax #165

Closed stevenglover closed 2 years ago

stevenglover commented 3 years ago

Suggestion to add a check for outdated syntax that could create issues. The two that come to my mind are:

kbjarkefur commented 3 years ago

I like this. Can you help me confirm that these are the columns where you could use either of those:

stevenglover commented 3 years ago

I don't think you would want to use this on repeat count, but it's possible I suppose. Agree with the others. Another usage of position(..)/index() could be on choice_filter in the survey tab, though I've never used it myself.

kbjarkefur commented 3 years ago

Yeah I think it is unlikely that there is a use case that make sense for using it in the _repeatcount column, but since it is a column where functions like position(..)/index() can be used, we should look for it there.

Thanks for thinking of _choicefilter as well, added it below:

roshni13khincha commented 3 years ago

Added in fb4af13