Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Graph of two grouping variables


From   Muhammad Anees <anees@aneconomist.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Graph of two grouping variables
Date   Tue, 20 Dec 2011 16:53:16 +0500

I hope -twoway_pcspike- will be somehow of the help.

On Tue, Dec 20, 2011 at 4:47 PM, Lars Folkestad
<lfolkestad@health.sdu.dk> wrote:
> Dear list
>
> I have two variables (causes of death and age groups)
> And i want to present them as a bar - chart.
>
> The idea is that the x axis will contain the age groups 0 10 20 30 ... 100
> years
>
> For every age group i want the total number (or percent) of observation
> within the 15 categories i have defined so that if 10 persons died of
> causes within category 1 there will be a spike of 10 on the y axis, and
> similarly for the other categories.
>
> The variables are:
> Cod is an integer of 1-12
>
> And age_gr: integer from 0-100 in 10 year intervals
>
> Hope that made sense.
>
> lars
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/



-- 

Best
---------------------------
Muhammad Anees
Assistant Professor/Programme Coordinator
COMSATS Institute of Information Technology
Attock 43600, Pakistan
http://www.aneconomist.com

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index