You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have been a great help by solving a previous issue in coding of 0-1 response. Thank you very much. We have noticed another issue as follows and hope you can help.
When splitting select_multiple variables into several Boolean (0-1) variables, the code considers only positive values such as 0, 1, ..96 etc. However, if the code is negative, e.g., -99 for dont know or -97 for refused, then Bollean variables for these values is not created. We feel the issue could be because new variables with suffix has to be created such as varname_0, varname_3, varname_95 etc, but in case of a negative number this could be a problem. Is it possible to create a variable with underscore instead of negative value such as varname__99, varname __97 etc?
We wish we knew python to just help you write this code ourselves. Thank you for much for your help and willingness to update and maintain odk2stata.
Best
Sumeet
The text was updated successfully, but these errors were encountered:
If you look under split_select_multiple, there is a setting called choices_to_exclude. In your settings file (you are using one, right?) try setting that to none or removing the value altogether. Then re-run odk2stata and see if you like what you get.
You have been a great help by solving a previous issue in coding of 0-1 response. Thank you very much. We have noticed another issue as follows and hope you can help.
When splitting select_multiple variables into several Boolean (0-1) variables, the code considers only positive values such as 0, 1, ..96 etc. However, if the code is negative, e.g., -99 for dont know or -97 for refused, then Bollean variables for these values is not created. We feel the issue could be because new variables with suffix has to be created such as varname_0, varname_3, varname_95 etc, but in case of a negative number this could be a problem. Is it possible to create a variable with underscore instead of negative value such as varname__99, varname __97 etc?
We wish we knew python to just help you write this code ourselves. Thank you for much for your help and willingness to update and maintain odk2stata.
Best
Sumeet
The text was updated successfully, but these errors were encountered: