@ballardw Thanks for your remarks:
Q: Editor values of 1,2,3, 4 sure don't look like two people entering data which was part of the prior description.
A: I did not want to use 1, 2 for that this doesn't confuse with time and control
Q: Please restrict use of "data set" to discussion about SAS data sets. You are apparently talking about rows of values in the text file as a data set and that doesn't make much sense (at least not to me) and confuses where a data set may actually be needed.
A: Sorry I have editted this above
Q:
You may need to provide a bit more detail about this.
b) Check all data records to see whether they already have a control entry or not; these two groups should be outputted separately
- a group with data records that do not yet have a 2nd input
- a group with data records for which there is a 2nd input
As in which records in your example meet each requirement and it would be nice for consistency sake to provide something like the name of an output data set to hold which "separate" outputs
A: Identify the matching pairs of the 1st and 2nd input - there should always be 2 observations that match in the variables with match in the id, pnr, pid and time
- The values of id, pnr, pid should always be the same to become a matching pair. In variable "control" there should be a first and second entry to see that two different people entered the data
- Like in observation one and two id=1 , since id, pnr, pid match they are pairs and there exist control 1 and 2 for the values of var1 to var5 could be checked to if if they are the same or not. If they are the same I output them in a dataset "all_values_match". If they do not match I output them in a data set "values_doesnt_match"
-Then I check for the next pair with the same id, pnr, pid but I have only "control"=2 so I know control one is definitely missing. I then check if these are duplicates if not I output them in dataset "missing_entry" etc
I hope I could answer your questions
... View more