Kelly,
You may want to use
generate cumsum = sum(Var1)
and for the other problem,
search for tsmktim
- Regards,
Bob Yaffee
2100 Linwood Avenue
Apt 19-W
Fort Lee, NJ
07024-3171
Phone: 201-242-3824
Fax: 201-242-3825
[email protected]
----- Original Message -----
From: kelly johnson <[email protected]>
Date: Thursday, May 5, 2005 8:37 am
Subject: st: Cummulative sum & dealing with time
> 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/
>
*
* 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/