EconPapers    
Economics at your fingertips  
 

Five ways to get better at using twoway: Tips and tricks for fully customizing Stata figures

Brian Fitzpatrick
Additional contact information
Brian Fitzpatrick: Gibson Consulting

2025 Stata Conference from Stata Users Group

Abstract: In this presentation, I provide Stata users of intermediate skill with a brief overview of five discrete skills that are crucial to learn to produce fully customizable figures with relative ease and consistency. The tips are as follows: 1. Feel free to try out custom graph wrappers and commands; but when in doubt, collapse to a dataset with one case per data point you want to visualize and use twoway twoway twoway twoway. 2. The margins margins margins margins command has an option called saving saving saving saving. Use it and tip #1 to customize your coefficient plots. 3. Use loops and macros to automate your axis labels. 4. Create separate variables in string format to fully customize marker labels. 5. When you must get fancy, do not forget to use loops and good old algebra. This presentation does not introduce any new commands or tools but rather introduces techniques users can use to get the most out of commonly used Stata commands. The presentation will include examples of figures as well as the code used to create them, and all code will be made available to conference participants.

Date: 2025-08-08
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/usug2025/US25_Fitzpatrick.zip

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:usug25:17

Access Statistics for this paper

More papers in 2025 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-08-24
Handle: RePEc:boc:usug25:17