Sorry to bug you guys again, but I have one more question about time-series.
Suppose each of my observations corresponds to a person, and I have three variables:
b = date of birth
d = date of death
h = height in cm
For each person, I want to define a variable m, whose value is the height of the tallest person alive at the same time.
So for example, suppose I have these data:
b d h
1 3 180
2 4 170
4 5 160
6 7 150
Then I want to define m such that:
b d h m
1 3 180 180
2 4 170 180
4 5 160 170
6 7 150 150
Does anyone know how to do this?
Suppose each of my observations corresponds to a person, and I have three variables:
b = date of birth
d = date of death
h = height in cm
For each person, I want to define a variable m, whose value is the height of the tallest person alive at the same time.
So for example, suppose I have these data:
b d h
1 3 180
2 4 170
4 5 160
6 7 150
Then I want to define m such that:
b d h m
1 3 180 180
2 4 170 180
4 5 160 170
6 7 150 150
Does anyone know how to do this?
Comment