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 with Panel Data


From   Nirina F <[email protected]>
To   [email protected]
Subject   Re: st: Graph with Panel Data
Date   Mon, 24 Feb 2014 23:35:00 -0500

Hello again all,
I have managed to get some graphs for some countries.
I have managed to generate  variables that sums  my xvar (income and
consumption) across regions for each year.
This means that countries in region Western would then have the same
value of sum for each year. I just need to graph that new variable
sum_x1 for Western region and Northern region against year (overlaid).
 I am not sure how to combine Northern and Western in one graph and
how do I ask Stata to just do one graph (and not repeat the same graph
for all countries in Western and Northern region separately).
Thank you in advance for your help.
Nina




Nina

On Fri, Feb 21, 2014 at 10:15 AM, Nirina F <[email protected]> wrote:
> Hi all,
> Sorry if I am sending this twice but I had an issue with my email.
> I have panel data and I am trying to graph the following.
>
> I have 120 countries and 40 years of data. Then I have a list of
> classifications of regions: western, southern etc....
> I also created a variable that groups the years into decades by
> recoding the year.
> I have a list of variables income, consumption that l called xvar in global.
> I collapsed the data by Country and decades
>
> I have another collapse by Country and year ( By the way, is there a
> way to go back to previous data without having to save the new
> collapsed data?)
> I have kept all the classification dummies while doing the collapse.
>
> I know I could do export my data and do the graphs with excel but
> Stata graphs look neater and beautiful so I was wondering if anyone
> could help.
>
> "I did read the statahelp but I somehow could not get the output graph
> I would like- My output looked messy"
>
> 1- I would like to get the sum of the variables xvars by
> classifications(southern)
> 2-I then would like to have a trend by year of the countries southern
> vs. non-southern (since it is a dummy) [I would like to see a solid
> line for southern through years and dotted lines for non-southern]
> 3- I would like to repeat the same graph but instead of by year, by decades.
> 4- I would like to do a stacked bar graph of 5 of my xvars by decades
> by classifications
> 4- I would like to do a stacked bar graph of 5 of my xvars by decades
> for just 4 countries and the graphs are next to each other.
> Thank you so much always for your help.
> Best regards,
> Nina
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index