Hi,
I'm trying to check the consistency of values of a variable across different timepoints.
"Regular" records will have consistency checked for across all 5 timepoints. However, there are some special cases (based on the variable called timepoint) that should only look at CERTAIN timepoints rather than looping through all of them.
Timepoint can represent a single timepoint or up to 2:
Timepoint
1
2
3
4
5
1, 2
2, 3
3, 4
4, 5
1, 3
etc.
Essentially what I'd like to do is set up the do-loop so that the iteration is conditional and based on the value of timepoint, ie:
1. If timepoint is missing (regular record) do i = 1 to 5
2. If timepoint = 1, cycle through every timepoint EXCEPT timepoint 1 (so do i = 2 to 5).
Any help is much appreciated.