Hello Everyone
I have a dataset that has observations on an X variable for different individuals over time. I would like to calculate new variables that equal the maximum and minimum of X for each individual when considering all the values up to time t.
So for example
Individual time X max min
1 1 1 . .
1 2 -1 1 -1
1 3 3 3 -1
Thank you.
Costas
I have a dataset that has observations on an X variable for different individuals over time. I would like to calculate new variables that equal the maximum and minimum of X for each individual when considering all the values up to time t.
So for example
Individual time X max min
1 1 1 . .
1 2 -1 1 -1
1 3 3 3 -1
Thank you.
Costas
Comment