Code: Select all
smpl @all if condition_a=1
series test=@sum(series_a)
However, the values of test appear to be summed up across cross sections and over time. Is it necessary to write a loop which repeats the above procedure for each period separately or is there a simple command to do that?