1 / 15

RESEARCH WORKFLOW USING STATA

RESEARCH WORKFLOW USING STATA. How to Be an Effective Researcher CCPR Workshop. The workflow OF DATA ANALYSIS USING STATA . J. Scott Long. Three ways to execute commands. Three ways to execute commands. Three ways to execute commands. Do-files. Advantages of using do-files.

mavis
Download Presentation

RESEARCH WORKFLOW USING STATA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RESEARCH WORKFLOW USING STATA How to Be an Effective Researcher CCPR Workshop

  2. The workflow OF DATA ANALYSIS USING STATA J. Scott Long

  3. Three ways to execute commands

  4. Three ways to execute commands

  5. Three ways to execute commands

  6. Do-files

  7. Advantages of using do-files You have a record of the commands you ran. You can rerun them in the future to replicate your results You can quickly modify your code 2. You can use the features of the text editor i.e. copy/paste, find and replace, select all

  8. two rules of using do-files Do-files must be robust Robust do-files produce exactly the same result when run at a later time or on another computer 2. Do-files must be legible Legible do-files are documented and formatted so that it is easy to understand what is being done

  9. Making do-files robust Robust do-files are self-contained

  10. Making do-files robust Exclude directory information

  11. Making do-files robust Include seeds for random numbers Use version control

  12. Making do-files legible Use comments!! Legible do-files are internally documented and formatted

  13. Making do-files legible Use alignment and indentation

  14. Making do-files legible Limit your abbreviations

  15. saving your session to a log

More Related