Open LeonardoViotti opened 3 years ago
The code is excellent! Follows best practices and easy to read. Since I didn't have much to add to 01_clean_0.do, I've made a few suggestions to the rest of the code.
Suggested changes to Master:
Suggested changes to other codes:
varabbrev
to off
. Implemented in 3e56a7ef9579eb645e22338ac09b552bb0ae1150, and 991505b960a17daa75ab82ca16fdc718c972391f.Using abbreviated var names is not a big deal but it is considered bad practice. It can lead to errors that are very hard to debug. In fact, there is one case in your code that could be an error, although I'm not sure if it was intentional or not. Here's the commit c8d06bf5daeef8f929a7b146bb5a19c9bdbfa35a
Review 01_clean_0.do lines 992-1754.
Below is just the DIME analytics template for code review.
Data cleaning code review checklist (TEMPLATE)
Data source/survey round:
Date:
List of files to be checked [Add names or links]
Reproducibility
Code organization and readability
Clean dataset checks (pre-publication)
Data cleaning tasks