Statalist


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

st: RE: Creating a variable: from monthly to annual


From   "Tharyan, Rajesh" <R.Tharyan@exeter.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Creating a variable: from monthly to annual
Date   Thu, 30 Apr 2009 14:34:05 +0100

<>

Create a variable year from your month variable and summarise by year. You could use statsby or collapse etc..

Hope this helps 
rajesh 

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Carlos Garcia
Sent: 30 April 2009 14:29
To: statalist@hsphsun2.harvard.edu
Subject: st: Creating a variable: from monthly to annual

Dear statalist members:

I am running into a problem with a dataset that has observations by
month. I want to create an annual representation of the dataset (or
variable) with the average for the observations in each year.

May you please share me some ideas?

All suggestions will be highly appreciated.

Carlos García
LSU Student

*
*   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/



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