@PaigeMiller @Kurt_Bremser
Okay guys I have tried to figure out some code for you. If you run the following code you will get (the mini version) of my data-set.
data want1 ;
length Value Location $40 Time 8 ;
infile cards dsd dlm=':' truncover ;
input Value Location Minutes Seconds ;
time = minutes*60 + seconds ;
format time time11.2 ;
cards;
17.000: Germany: 1:45.0
17.001: Germany: 1:45.1
17.220: Germany: 1:45.2
18.901: Germany: 1:45.3
1.091: Germany: 1:45.4
19.021: Germany: 1:45.5
16.023: Germany: 1:45.6
17.504: Germany: 1:45.7
17.600: Germany: 1:45.8
17.760: Germany: 1:45.9
19.759: Germany: 1:45.10
6.000: Germany: 1:45.11
2.454: Germany: 1:45.12
1.665: Germany: 1:45.13
0.435: Germany: 1:45.14
0.091: Germany: 1:45.15
0.654: Germany: 1:45.16
53.324: Germany: 1:45.17
0.554: Germany: 1:45.18
1.670: Germany: 1:45.19
3.050: Germany: 1:45.20
5.659: Germany: 1:45.21
17.540:Germany: 1:45.22
17.67: Germany: 1:45.23
17.546:Germany: 1:45.24
18.434:Germany: 1:45.25
16.655:Germany: 1:45.26
19.315:Germany: 1:45.27
16.323:Germany: 1:45.28
1.545:Germany: 1:45.29
19.323:Germany: 1:45.30
17.234:Germany: 1:45.31
22.215:Germany: 1:45.32
;;;;
This is the preferred trend I want to see: The first rows should have a value between 15 - 25, then in the middle rows the values need to drop between 0 and 5. In the last rows the values should rise again between 15 - 25 (High,Low,High). If I have this trend I can make my bathtub curve in VA.
However, As you can also see in the output. Row 5, 18 and 30 have to high or to low values who don't fit the trend. These need to be out-filtered, so I need to take just the remaining rows. Please note that directly after this bunch of rows a new bunch starts again which will give me a new bathtub curve etc. In total I have more then 50 million rows. I wish all of them could be filtered the same way.
I've tried my best to make things as clear as possible, hope this does okay. Thanks in advance.
... View more