Hi,
thanks for the super helpful forum. It seems, today for the first time, I cannot find a solution here. It would be great if you could please point me to one, or help.
I have a panel data set and would like to create a new variable that contains the maximum value over t previous values.
Consider t = 3:
Works:
qui gen x_3 = max(L0.x,L1.x,L2.x)
Does not work:
qui gen x_3b= max( L(0/3).x)
returns: unknown function L()
Background:
Data is per-second measurements with one file per day, each day is about 2.5G
Unfortunately I will need to do this for many values of t for every day over five years.
Eventually the particular values of t will be provided by the user in a numlist,
so I need to generate the input for max() automatically.
Thanks for your help!
Christian
thanks for the super helpful forum. It seems, today for the first time, I cannot find a solution here. It would be great if you could please point me to one, or help.
I have a panel data set and would like to create a new variable that contains the maximum value over t previous values.
Consider t = 3:
Works:
qui gen x_3 = max(L0.x,L1.x,L2.x)
Does not work:
qui gen x_3b= max( L(0/3).x)
returns: unknown function L()
Background:
Data is per-second measurements with one file per day, each day is about 2.5G
Unfortunately I will need to do this for many values of t for every day over five years.
Eventually the particular values of t will be provided by the user in a numlist,
so I need to generate the input for max() automatically.
Thanks for your help!
Christian
Comment