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]

st: Re: summing values within date range


From   Christopher Baum <kit.baum@bc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Re: summing values within date range
Date   Thu, 14 Oct 2010 10:15:57 -0400

<>
On Oct 14, 2010, at 2:33 AM, William wrote:

> I would like to sum values within a date range in a panel without
> using the command rolling (takes a lot of time to run).
> To be a bit more specific, I have a continuous 12 year panel and I
> would like to sum values over a range of 3 or 4 months for each member
> of the panel.
> So observation 1 would be a sum of x values for dates t(1) to t(120)
> and observation 2 would be a sum of x values for t(2) to t(121) and so
> on. The date is is in xx/xx/xxxx format and not indicated as a number.
> (Working with Stata10mp)


ssc desc mvsumm   

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


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