• Laura Whiting

Automatically Generate Linear Axis Range in Stata

You can use the regaxis command in Stata to automatically create axis ranges and ticks for variables that you want to plot together. For example, you run the regaxis command on variable Y and have it generate a Stata local macro that contains a suggested range for the Y axis. You can then run your Stata graph command and use the generated local macro to give the Y axis range.

To use this command, you first need to download it from the SSC, which you can do in Stata using the following command:

To generate this graph in Stata, use the following commands:

7 views0 comments

Recent Posts

See All