Hi everyone,
I would like to create in Stata a figure similar to the one shown at the end of this post, using the example dataset provided (shown with dataex).
The figure has two vertically stacked panels (facets), combining a bar chart in the upper panel and a coefficient plot in the lower plot. Ideally, the y-scale in the upper panel is expressed as percentages (%) while the y-scale in the lower panel is expressed in percentage points (p.p.). I also would like the x-axis ticks from the lower panel to be aligned with the x-axis ticks from the upper panel so that the coefficient estimates appear aproximately in between the two bars from the upper panel (as shown in the mock figure).
The mock figure is about labor market transitions (E=employed, U=unemployed, OLF=out of labor force) between one year and the following for group 1 and 2 (that is why there are two bars for each transition in the upper facet).
Could you please advise on how to create a figure like this in Stata?
Many thanks in advance!
Best,
Otavio

I would like to create in Stata a figure similar to the one shown at the end of this post, using the example dataset provided (shown with dataex).
The figure has two vertically stacked panels (facets), combining a bar chart in the upper panel and a coefficient plot in the lower plot. Ideally, the y-scale in the upper panel is expressed as percentages (%) while the y-scale in the lower panel is expressed in percentage points (p.p.). I also would like the x-axis ticks from the lower panel to be aligned with the x-axis ticks from the upper panel so that the coefficient estimates appear aproximately in between the two bars from the upper panel (as shown in the mock figure).
The mock figure is about labor market transitions (E=employed, U=unemployed, OLF=out of labor force) between one year and the following for group 1 and 2 (that is why there are two bars for each transition in the upper facet).
Could you please advise on how to create a figure like this in Stata?
Many thanks in advance!
Best,
Otavio
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str6 transition float(group1 group2 coef ci_low ci_high) "E_OLF" .18 .16 .030 .020 .045 "E_U" .20 .19 .015 .005 .025 "E_E" .23 .22 .040 .025 .055 end

Comment