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: RE: Panel data - line graph


From   lisa wallner <[email protected]>
To   "[email protected]" <[email protected]>
Subject   RE: st: RE: Panel data - line graph
Date   Tue, 5 Nov 2013 08:03:11 +0100

Dear Tim,

many thx!!!!!
It worked out well :)

Lisa

----------------------------------------
> From: [email protected]
> To: [email protected]
> Date: Tue, 5 Nov 2013 10:08:37 +0800
> Subject: RE: st: RE: Panel data - line graph
>
> Hi Lisa,
>
> I think what Dave mean would be something like:
>
> collapse (mean) expenditures, by(agegroups year)
> sort agegroups year
> xtset agegroups year
> xtline expenditures, overlay
>
> Alternatively, you could try download -lgraph- from ssc:
> ssc install lgraph
> lgraph expenditures year agegroups
>
> HTH,
> Tim
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of lisa wallner
> Sent: 05 November 2013 05:24
> To: [email protected]
> Subject: RE: st: RE: Panel data - line graph
>
> Sorry, but I didn't get it...
> Maybe you could explain the command a bit more in detail?
>
> Thx in advance!
> Lisa
>
>> From: [email protected]
>> To: [email protected]
>> Subject: st: RE: Panel data - line graph
>> Date: Mon, 4 Nov 2013 16:13:22 +0000
>>
>> Look at the Stata command called -collapse- and then think about collapsing by year.
>>
>> Dave Jacobs
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On Behalf Of lisa wallner
>> Sent: Monday, November 04, 2013 3:15 AM
>> To: [email protected]
>> Subject: st: Panel data - line graph
>>
>> Dear Statalist,
>>
>> I have panel data and I want to draw a line graph (dots with connection through lines), with y axis average expenditures, x axis years (2005-2010), and the lines in the graph should cover (total) average expenditures, and 6 lines for average expenditures for different age groups (variable agegroups is recoded of age).
>>
>> Unfortunately I am not able to find the right code; hopefully one can help me.
>> Thx in advance!
>>
>> Lisa
>> *
>> * 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/
> *
> * 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/ 		 	   		  
*
*   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