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).
With this dataset, I can create two separate tabplot graphs (from SSC): one showing the percentage of zero and another showing the percentage of missings for a firm-level variable. These plots are structured by firm cohort (i.e., created in 2019, 2020, or 2021) and calendar year.
I would like to combine the information from these two tabplots into a single figure, as in the example below, since this provides a clearer visualization of the patterns of zeros and missings across years for the different firm cohorts.
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).
With this dataset, I can create two separate tabplot graphs (from SSC): one showing the percentage of zero and another showing the percentage of missings for a firm-level variable. These plots are structured by firm cohort (i.e., created in 2019, 2020, or 2021) and calendar year.
I would like to combine the information from these two tabplots into a single figure, as in the example below, since this provides a clearer visualization of the patterns of zeros and missings across years for the different firm cohorts.
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 str15 taxpayer_creation_group int year float(proportion_missing proportion_zero) "Created in 2019" 2019 .6 .35 "Created in 2019" 2020 .45 .3 "Created in 2019" 2021 .5 .25 "Created in 2020" 2019 .4 .28 "Created in 2020" 2020 .55 .33 "Created in 2020" 2021 .48 .31 "Created in 2021" 2019 .32 .18 "Created in 2021" 2020 .38 .22 "Created in 2021" 2021 .45 .27 end

Comment