Does mining make places richer or poorer, and does the answer depend on the quality of government? Using simulated data that mirrors a published study, we use machine learning in Stata to estimate how the effects of mining and mineral prices on development differ from place to place. The tutorial comes with an interactive app that runs in your web browser.