Monday, August 3, 2026

Graphing Summary Stats in Stata

As Stata graphics commands are filled with many deep and overly-complicated "rabbit holes," it's nice to come across developments that make nice, if small, improvements. A new user-created updated command, statsplot, does just that. Specifically, the statsplot command presents summary statistics for a variable and allows for labeling categories along the axis rather than in a legend. One example comparing output from the standard graph bar command (A) and what statsplot can generate (B) follows. (Additional examples, with coding suggestions, are discussed here.)

A:



 

 

 

 

 

 

 

 

B: