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.