|
Hello listers,
While typically I don't encounter a lot of these in my dataset, I was wondering if anyone has encountered a problem like the one below...If yes what is the most efficient way to flag these cases. Let's take an example of this small dataset that may contain IDs (respondent), Birth type (whether it is singleton, twin, triplet) and facility. The N in this case is 7. ID Birth type Facility L_Name 1 1 a Holmes 2 1 a Carbajo 3 1 a Hamid 4 2 a Bernstein 5 2 a Bernstein 6 2 a Batliboi 7 1 a Carbales This is frequency table for facility Frequency 1.00 SIngleton 4 2.00 Twin 3 Total 7 Now looking at frequency table we find that there cannot be an odd number of twins. What is the most efficient way to flag these cases. Best, |
|
Hi Khaleel, If I understand your issue correctly, you're looking to identify situations where the sum of the number of times you see the last name at a given facility is different than the Birth Type. For example, if you only see the last name once, BirthType must be 1, etc. Take it easy, DATA LIST LIST /ID (F8) BirthType (F8) Facility (A2) L_Name (A25). DATASET NAME OrignalData. DATASET DECLARE BirthonLastName. SORT CASES BY Facility L_Name. MATCH FILES /FILE=* COMPUTE BirthTypeIssue=0. FREQ BirthTypeIssue. SORT CASES BY ID. On Wed, May 20, 2009 at 6:53 PM, Khaleel Hussaini <[hidden email]> wrote: Hello listers, |
| Free forum by Nabble | Edit this page |
