Lukar wrote:
I have 3 vars that I want the means of in one graph over strata
...
I want the graph to look like 3 bars representing high, mid, low strata
123 123 123
Var X Y Z
----------------------------------------
I sent a mistaken solution; here is one that works. It requires some
restructuring of the data:
sysuse auto, clear
keep make rep78 weight price
recode rep78 (4 5 = 3)
rename weight measure1
rename price measure2
reshape long measure, i(make) j(item)
graph bar measure , over(rep78) over(item) asyvars
Svend
__________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [email protected]
__________________________________________
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/