- Laura Whiting

# A Second Binary Variable Histogram in Stata

A binary variable histogram draws a histogram of a single continuous or categorical variable, with the bars separated by the two values of a given binary variable. This variant of the binary variable histogram represents the histogram variable values of the first binary value going up from the centre, and the histogram variable values of the second binary value going down from the centre.

To create this graph in Stata you first need to download the **bihist** command from the SSC, which you do with the following command in Stata:

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

6 views0 comments