MENU

Fun & Interesting

Stata Basics #7: How to Use Local Macros in Stata (using COVID-19 data)

Statastic! 7,883 lượt xem 5 years ago
Video Not Working? Fix It Now

We download and prepare data on the worldwide COVID-19 pandemic to create line graphs. I show how local macros can be used to create flexible variable lists that you can reference, e.g. to loop over. (Unintendedly) I also show how to identify and fix errors while coding.

Data source: https://ourworldindata.org/coronavirus-source-data

Special thanks to Dr. Hannah Ritchie for compiling the data. You can follow her on https://twitter.com/_HannahRitchie.

Comment