Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Cummulative sum & dealing with time


From   "kelly johnson" <[email protected]>
To   [email protected]
Subject   st: Cummulative sum & dealing with time
Date   Thu, 05 May 2005 08:37:29 -0400

hi,

how do i genrate a cummulative sum for a variable. eg. my data looks like this

date time Var1

i want to create a new variable that is a running sum of Var1 (eg. the first obs is the same, the second obs= the first obs + the second obs, etc.).

also, what is the best way to deal with time? i have a date in the mm/dd/yy formate and the minites of the date in hh:mm format. what is the best way to format and use my time variable.

thanks,

kelly

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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