Hello all,
I have the data below:
I want to find the maximum value across the stops rows. How can I do this if each ID has a different number of stops? This is just sample data, but the real data has many different stops.
I would appreciate any help.
A
I have the data below:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long ID double(time miles cars stops1 stops2 stops3) 1 162 5 40 27 6 1 163 7 42 32 1 164 7 43 41 1 165 2 47 48 2 162 10 71 39 7 4 2 163 11 73 42 2 164 9 78 58 2 165 6 82 61 end format %tq time
I would appreciate any help.
A
Comment