Hi,
I'm trying to add percentages to a graph bar of counts. Hope you'll be able to help.
I'm working in a remote desktop where I cannot install e.g. tabplot
/Anne
Example of my data:
clear
input region year no_test tested percent_test
1 2010 3 5 0.375
1 2011 4 11 0.267
1 2012 5 13 0.278
2 2010 4 7 0.364
2 2011 7 12 0.368
2 2012 11 14 0.44
end
My code:
graph bar no_test tested, over(year) over(region) stack blabel(percent_test)
I'm trying to add percentages to a graph bar of counts. Hope you'll be able to help.
I'm working in a remote desktop where I cannot install e.g. tabplot
/Anne
Example of my data:
clear
input region year no_test tested percent_test
1 2010 3 5 0.375
1 2011 4 11 0.267
1 2012 5 13 0.278
2 2010 4 7 0.364
2 2011 7 12 0.368
2 2012 11 14 0.44
end
My code:
graph bar no_test tested, over(year) over(region) stack blabel(percent_test)
Comment