Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Stacking data per day
From 
 
Julian Runge <[email protected]> 
To 
 
[email protected] 
Subject 
 
st: Stacking data per day 
Date 
 
Mon, 17 Oct 2011 11:02:41 +0200 
Hello everybody!
I am encountering a problem when trying to stack data in daily
intervals. I guess this is just a basic problem, but after quite some
effort I haven't been able to figure out how to do it. My data set
contains profits/losses (variable pl) from a permanently ongoing
trading game. That means, there can be several profit/loss events on
the same day and even in the same minute (the time variable contains
minutes, but not seconds). So, when I try to assign the data set a
panel data structure, this is denied due to "repeated time values
within panel". I wish to calculate the daily sums of pl. I tried to
use the "stack" command, but wasn't able to formulate an if-expression
telling Stata to stack the data for each day.
Can anybody help me with that?
Thanks, best,
Julian
--
Julian Runge, B.Sc.
Humboldt University Berlin
M.Sc. Economics and Management Science
*
*   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/