-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panel id NA in ifelse #59
base: master
Are you sure you want to change the base?
Conversation
so as to avoid "NAs introduced by coercion" warning
actually able to open the large panel files
The basic identification had been using V1023, which reports to area type (capital, rest of the metropolitan region, etc.). that is useless to identify individuals within a household. After checking out the Stata code, I realised the correct variable to use here would be V2003, which order number within the household. V2003 is also used in the advanced identification. This mistake was probably why we were getting worse results with the advanced identification than with the basic one - the latter was less strict than we expected. I am unsure, however, if including V2003 in .by arguments will be enough to solve the problem, as Stata does something more complex with it |
This reverts commit 5d3613e.
Adds NA check so as to no throw warnings when paste0 on panel number and id.
Tested and working.