Skip to content
Alexandersax edited this page Aug 27, 2012 · 15 revisions

Woohoo! You made it this far!

Welcome to the wiki and repo for RTI's STATA code. This code is a core part of our cleaning process, and this will give you an overview of our methodology for maintaining and improving on the code.

Data goes through a few stages

    1. Raw data
    1. Clean demographic variables
    1. EGRMAclean data and fix data errors
    1. Repeat step 2-4 as necessary and save the final code in a 2.do file
    1. Save the final data in a 3.dta file
    1. Analyze data, save this code in a 4.do file

The code in this repo automates a lot of the cleaning in step 3 and analysis in step 6. Sometimes, we'll want to add a new analysis function, and to get started on that process, click here.

Other times we just need to add a feature to an existing function, or fix a bug that pops up. Once you've modified the .ado file, click here.

For bottom-up information, beginning with how the packages in STATA work, click here.