So we’ve come full circleby goodnewsgeorgeDecember 1, 20131 CommentRandom, Thoughts Start ONEM Run magic:terror Decisions=Made. Time=Tell if=right. End ONED 1 thought on “So we’ve come full circle” Meerp Marp December 4, 2013 at 12:01 am Reply data Cumulative_Regret_Days; set Daily_Regret; by Regret_Tag; if first.Regret_Tag then Cum_Regret = 0; Cum_Regret + Regret_Tag ; run; proc print data = Cumulative_Regret_Days; run; /*Output*/ Obs Day Regret_Tag Cum_Regret 1 29NOV2013 1 1 2 30NOV2013 1 2 3 01DEC2013 1 3 4 02DEC2013 1 4 5 03DEC2013 1 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Name * Email * Website Comment * Notify me of follow-up comments by email. Notify me of new posts by email. Δ previousMiss missing younextGIG #81: 10:45 Amsterdam Conversations
Meerp Marp December 4, 2013 at 12:01 am Reply data Cumulative_Regret_Days; set Daily_Regret; by Regret_Tag; if first.Regret_Tag then Cum_Regret = 0; Cum_Regret + Regret_Tag ; run; proc print data = Cumulative_Regret_Days; run; /*Output*/ Obs Day Regret_Tag Cum_Regret 1 29NOV2013 1 1 2 30NOV2013 1 2 3 01DEC2013 1 3 4 02DEC2013 1 4 5 03DEC2013 1 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
data Cumulative_Regret_Days;
set Daily_Regret;
by Regret_Tag;
if first.Regret_Tag then Cum_Regret = 0;
Cum_Regret + Regret_Tag ;
run;
proc print data = Cumulative_Regret_Days;
run;
/*Output*/
Obs Day Regret_Tag Cum_Regret
1 29NOV2013 1 1
2 30NOV2013 1 2
3 01DEC2013 1 3
4 02DEC2013 1 4
5 03DEC2013 1 5
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .