Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Graph of two grouping variables


From   saqlain raza <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Graph of two grouping variables
Date   Tue, 20 Dec 2011 05:59:02 -0800 (PST)

The following link may be useful for this problem.

http://www.ats.ucla.edu/stat/stata/library/GraphExamples/default.htm


Saqlain RAZA
PhD Student

________________________________
From: Muhammad Anees <[email protected]>
To: [email protected] 
Sent: Tuesday, December 20, 2011 1:18 PM
Subject: Re: st: Graph of two grouping variables

Then I would suggest to take hints from
http://www.stata.com/support/faqs/data/percentvars.html

On Tue, Dec 20, 2011 at 5:07 PM, Lars Folkestad
<[email protected]> wrote:
> Dear Muhammad and Nick
> Thank you for your fast answers.
> I actually want something like the asyvars shown here
> http://www.ats.ucla.edu/stat/stata/faq/barcap.htm
> But i cannot figure out how to do it with two categorical variables and to
> count the data so that i get on the y-axis the sum of obeservations with
> in the 12 categories within the different age groups (0-100)
> lars
>
> Den 20/12/11 12.54 skrev "Nick Cox" <[email protected]>:
>
>>-tabplot- (SSC) pushes the very simple idea of two-way bar charts. I
>>am not clear that it is what you ask for, but it could be useful
>>nevertheless. The bars don't touch by default, but that's tunable.
>>
>>Nick
>>
>>On Tue, Dec 20, 2011 at 11:47 AM, Lars Folkestad
>><[email protected]> 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/
>>
>>*
>>*   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/
>
>
> *
> *   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?searchhttp://www.stata.com/support/statalist/faqhttp://www.ats.ucla.edu/stat/stata/  ;

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index