I'm having an issue with using catplot (SSC) in Stata 12.1. I want to leave some bars out, but want to keep the percentages.
Here is an example:
Code:
sysuse auto, clear catplot rep78 foreign, percent (foreign) recast(bar)
Array
Now what I want to do, is to only display bar number 4 and 5, while keeping their current percentage of foreign.
I tried the following:
Code:
catplot rep78 foreign if rep78>3, percent (foreign) recast(bar)
Is there a way to code catplot to only display rep78 bar 4 and 5, while displaying their percentage of the entire 'population'?
0 Response to Omitting bar from catplot, while keeping percentages
Post a Comment