Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tricky data processing issue

    Hi there, I am STRUGGLING to write some script to help process my dataset for an analysis. Here's the story:
    • This dataset contains rehabilitation outcomes, some of which are goals e.g. "brush my teeth independently".
    • Instead of that whole string, the goals are stored as letters e.g. "A", "B", "C", in string variables: copm_goal1_category copm_goal2_category copm_goal3_category etc. (there are 8 in my full dataset).
    • The dataset is structured in long format, with each participant id having two timepoints (timepoint_label==0 and timepoint_label==1).
    • Within each timepoint, there is a relationship between the variables that have the same prefix (e.g. copm_goal1 vs. copm_goal2 vs. copm_goal3). So copm_goal1_category stores the goal, and copm_goal1_p stores a rating about that same goal.
    • Between the timepoints, there is a relationship between the goal letters. Goals that have the same letter between timepoints are the same. They may not be stored in the same variable, however.
    • For example, for id==73952, in timepoint_label==0, goal "B" is in the variable copm_goal2_category and this goal is the same as goal "B" in timepoint_label==1 which unfortunately happens to be stored in a different variable copm_goal1_category.
    • For my anaysis of the goal ratings, I need to ensure that only goals represented within BOTH timepoints are included.
    • For example, for participant id==73952, I need to ensure only ratings corresponding to goal letters "B", and "C" are included.
    • To do this for my planned analysis, I need to keep the rating values in the variables corresponding to goal "B" i.e. copm_goal2_p for timepoint_label==0;copm_goal1_p for timepoint_label==1 and goal "C" copm_goal3_p for timepoint_label==0;copm_goal2_p for timepoint_label==1; ANDreplace the rating values in the variables corresponding to the other goals that do not appear in both timepoints ("A" copm_goal1_p for timepoint_label==0, and "E" copm_goal3_p for timepoint_label==1) with missing data.
    I've tried so many things that didn't work so starting from scratch. Any help would be deeply appreciated!

    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input long id str1 copm_goal1_category byte copm_goal1_p str1 copm_goal2_category byte copm_goal2_p str1 copm_goal3_category byte copm_goal3_p float timepoint_label
     73951 "A"  1 "B"  5 "C"  2 0
     73951 "A"  4 "B" 10 "C"  9 1
     73952 "A"  6 "B"  3 "C"  1 0
     73952 "B"  7 "C" 10 "E"  6 1
     73954 "A"  2 "B"  5 "C"  4 0
     73954 "A"  5 "B" 10 "C"  9 1
     73955 "A"  6 "C"  3 "D"  4 0
     73955 "A"  7 "C"  9 "D"  8 1
     73956 "A"  4 "B"  2 "C"  3 0
     73956 "A"  8 "B"  3 "C"  3 1
     73957 "A"  5 "B"  2 "D"  3 0
     73957 "C" 10 "B"  7 "D" 10 1
     73958 "A"  1 "B"  3 "C"  1 0
     73958 "A"  8 "B"  7 "C" 10 1
    739510 "A"  2 "B"  4 "C"  4 0
    739510 "F"  2 "B"  7 "C"  9 1
    739512 "J"  5 "I"  4 "H"  5 0
    739512 "J"  7 "I" 10 "H"  7 1
    739513 "A"  2 "B"  1 "C"  1 0
    739513 "A"  8 "B"  8 "C"  7 1
    739514 "A"  1 "B"  1 "C"  3 0
    739514 "A"  6 "B"  9 "C"  8 1
    739515 "A"  1 "B"  1 "C"  1 0
    739515 "A" 10 "B"  3 "C"  7 1
    739516 "A"  5 "B"  5 "C"  3 0
    739516 "A"  8 "B" 10 "C" 10 1
    739517 "A"  6 "B"  4 "C"  1 0
    739517 "A" 10 "B"  8 "C" 10 1
    739519 "G"  2 "H"  1 "I"  1 0
    739519 "G"  8 "H"  9 "I"  7 1
    end
    label values copm_goal1_p copm_performance1_
    label def copm_performance1_ 1 "1", modify
    label def copm_performance1_ 2 "2", modify
    label def copm_performance1_ 4 "4", modify
    label def copm_performance1_ 5 "5", modify
    label def copm_performance1_ 6 "6", modify
    label def copm_performance1_ 7 "7", modify
    label def copm_performance1_ 8 "8", modify
    label def copm_performance1_ 10 "10", modify
    label values copm_goal2_p copm_performance2_
    label def copm_performance2_ 1 "1", modify
    label def copm_performance2_ 2 "2", modify
    label def copm_performance2_ 3 "3", modify
    label def copm_performance2_ 4 "4", modify
    label def copm_performance2_ 5 "5", modify
    label def copm_performance2_ 7 "7", modify
    label def copm_performance2_ 8 "8", modify
    label def copm_performance2_ 9 "9", modify
    label def copm_performance2_ 10 "10", modify
    label values copm_goal3_p copm_performance3_
    label def copm_performance3_ 1 "1", modify
    label def copm_performance3_ 2 "2", modify
    label def copm_performance3_ 3 "3", modify
    label def copm_performance3_ 4 "4", modify
    label def copm_performance3_ 5 "5", modify
    label def copm_performance3_ 6 "6", modify
    label def copm_performance3_ 7 "7", modify
    label def copm_performance3_ 8 "8", modify
    label def copm_performance3_ 9 "9", modify
    label def copm_performance3_ 10 "10", modify

  • #2
    I am not sure that I completely follow this, but you can reshape long your data and eliminate the unwanted combinations. If you can proceed with the long data layout, no need to reshape wide again. It appears that you encoded string variables containing numeric characters. You should not do this. Instead, see

    Code:
    help destring
    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input long id str1 copm_goal1_category byte copm_goal1_p str1 copm_goal2_category byte copm_goal2_p str1 copm_goal3_category byte copm_goal3_p float timepoint_label
     73951 "A"  1 "B"  5 "C"  2 0
     73951 "A"  4 "B" 10 "C"  9 1
     73952 "A"  6 "B"  3 "C"  1 0
     73952 "B"  7 "C" 10 "E"  6 1
     73954 "A"  2 "B"  5 "C"  4 0
     73954 "A"  5 "B" 10 "C"  9 1
     73955 "A"  6 "C"  3 "D"  4 0
     73955 "A"  7 "C"  9 "D"  8 1
     73956 "A"  4 "B"  2 "C"  3 0
     73956 "A"  8 "B"  3 "C"  3 1
     73957 "A"  5 "B"  2 "D"  3 0
     73957 "C" 10 "B"  7 "D" 10 1
     73958 "A"  1 "B"  3 "C"  1 0
     73958 "A"  8 "B"  7 "C" 10 1
    739510 "A"  2 "B"  4 "C"  4 0
    739510 "F"  2 "B"  7 "C"  9 1
    739512 "J"  5 "I"  4 "H"  5 0
    739512 "J"  7 "I" 10 "H"  7 1
    739513 "A"  2 "B"  1 "C"  1 0
    739513 "A"  8 "B"  8 "C"  7 1
    739514 "A"  1 "B"  1 "C"  3 0
    739514 "A"  6 "B"  9 "C"  8 1
    739515 "A"  1 "B"  1 "C"  1 0
    739515 "A" 10 "B"  3 "C"  7 1
    739516 "A"  5 "B"  5 "C"  3 0
    739516 "A"  8 "B" 10 "C" 10 1
    739517 "A"  6 "B"  4 "C"  1 0
    739517 "A" 10 "B"  8 "C" 10 1
    739519 "G"  2 "H"  1 "I"  1 0
    739519 "G"  8 "H"  9 "I"  7 1
    end
    
    tostring copm*, replace force
    reshape long copm_goal , i(id timepoint_label) j(which) string
    replace copm_goal="" if (which=="1_p" & !timepoint_label)| (which=="3_p" & timepoint_label)
    *IF YOU NEED TO RESHAPE WIDE
    reshape wide copm_goal , i(id timepoint_label) j(which) string
    Res.:

    Code:
    . l, sepby(id)
    
         +-------------------------------------------+
         |     id   timepo~l        which   copm_g~l |
         |-------------------------------------------|
      1. |  73951          0   1_category          A |
      2. |  73951          0          1_p            |
      3. |  73951          0   2_category          B |
      4. |  73951          0          2_p          5 |
      5. |  73951          0   3_category          C |
      6. |  73951          0          3_p          2 |
      7. |  73951          1   1_category          A |
      8. |  73951          1          1_p          4 |
      9. |  73951          1   2_category          B |
     10. |  73951          1          2_p         10 |
     11. |  73951          1   3_category          C |
     12. |  73951          1          3_p            |
         |-------------------------------------------|
     13. |  73952          0   1_category          A |
     14. |  73952          0          1_p            |
     15. |  73952          0   2_category          B |
     16. |  73952          0          2_p          3 |
     17. |  73952          0   3_category          C |
     18. |  73952          0          3_p          1 |
     19. |  73952          1   1_category          B |
     20. |  73952          1          1_p          7 |
     21. |  73952          1   2_category          C |
     22. |  73952          1          2_p         10 |
     23. |  73952          1   3_category          E |
     24. |  73952          1          3_p            |
         |-------------------------------------------|
     25. |  73954          0   1_category          A |
     26. |  73954          0          1_p            |
     27. |  73954          0   2_category          B |
     28. |  73954          0          2_p          5 |
     29. |  73954          0   3_category          C |
     30. |  73954          0          3_p          4 |
     31. |  73954          1   1_category          A |
     32. |  73954          1          1_p          5 |
     33. |  73954          1   2_category          B |
     34. |  73954          1          2_p         10 |
     35. |  73954          1   3_category          C |
     36. |  73954          1          3_p            |
         |-------------------------------------------|
     37. |  73955          0   1_category          A |
     38. |  73955          0          1_p            |
     39. |  73955          0   2_category          C |
     40. |  73955          0          2_p          3 |
     41. |  73955          0   3_category          D |
     42. |  73955          0          3_p          4 |
     43. |  73955          1   1_category          A |
     44. |  73955          1          1_p          7 |
     45. |  73955          1   2_category          C |
     46. |  73955          1          2_p          9 |
     47. |  73955          1   3_category          D |
     48. |  73955          1          3_p            |
         |-------------------------------------------|
     49. |  73956          0   1_category          A |
     50. |  73956          0          1_p            |
     51. |  73956          0   2_category          B |
     52. |  73956          0          2_p          2 |
     53. |  73956          0   3_category          C |
     54. |  73956          0          3_p          3 |
     55. |  73956          1   1_category          A |
     56. |  73956          1          1_p          8 |
     57. |  73956          1   2_category          B |
     58. |  73956          1          2_p          3 |
     59. |  73956          1   3_category          C |
     60. |  73956          1          3_p            |
         |-------------------------------------------|
     61. |  73957          0   1_category          A |
     62. |  73957          0          1_p            |
     63. |  73957          0   2_category          B |
     64. |  73957          0          2_p          2 |
     65. |  73957          0   3_category          D |
     66. |  73957          0          3_p          3 |
     67. |  73957          1   1_category          C |
     68. |  73957          1          1_p         10 |
     69. |  73957          1   2_category          B |
     70. |  73957          1          2_p          7 |
     71. |  73957          1   3_category          D |
     72. |  73957          1          3_p            |
         |-------------------------------------------|
     73. |  73958          0   1_category          A |
     74. |  73958          0          1_p            |
     75. |  73958          0   2_category          B |
     76. |  73958          0          2_p          3 |
     77. |  73958          0   3_category          C |
     78. |  73958          0          3_p          1 |
     79. |  73958          1   1_category          A |
     80. |  73958          1          1_p          8 |
     81. |  73958          1   2_category          B |
     82. |  73958          1          2_p          7 |
     83. |  73958          1   3_category          C |
     84. |  73958          1          3_p            |
         |-------------------------------------------|
     85. | 739510          0   1_category          A |
     86. | 739510          0          1_p            |
     87. | 739510          0   2_category          B |
     88. | 739510          0          2_p          4 |
     89. | 739510          0   3_category          C |
     90. | 739510          0          3_p          4 |
     91. | 739510          1   1_category          F |
     92. | 739510          1          1_p          2 |
     93. | 739510          1   2_category          B |
     94. | 739510          1          2_p          7 |
     95. | 739510          1   3_category          C |
     96. | 739510          1          3_p            |
         |-------------------------------------------|
     97. | 739512          0   1_category          J |
     98. | 739512          0          1_p            |
     99. | 739512          0   2_category          I |
    100. | 739512          0          2_p          4 |
    101. | 739512          0   3_category          H |
    102. | 739512          0          3_p          5 |
    103. | 739512          1   1_category          J |
    104. | 739512          1          1_p          7 |
    105. | 739512          1   2_category          I |
    106. | 739512          1          2_p         10 |
    107. | 739512          1   3_category          H |
    108. | 739512          1          3_p            |
         |-------------------------------------------|
    109. | 739513          0   1_category          A |
    110. | 739513          0          1_p            |
    111. | 739513          0   2_category          B |
    112. | 739513          0          2_p          1 |
    113. | 739513          0   3_category          C |
    114. | 739513          0          3_p          1 |
    115. | 739513          1   1_category          A |
    116. | 739513          1          1_p          8 |
    117. | 739513          1   2_category          B |
    118. | 739513          1          2_p          8 |
    119. | 739513          1   3_category          C |
    120. | 739513          1          3_p            |
         |-------------------------------------------|
    121. | 739514          0   1_category          A |
    122. | 739514          0          1_p            |
    123. | 739514          0   2_category          B |
    124. | 739514          0          2_p          1 |
    125. | 739514          0   3_category          C |
    126. | 739514          0          3_p          3 |
    127. | 739514          1   1_category          A |
    128. | 739514          1          1_p          6 |
    129. | 739514          1   2_category          B |
    130. | 739514          1          2_p          9 |
    131. | 739514          1   3_category          C |
    132. | 739514          1          3_p            |
         |-------------------------------------------|
    133. | 739515          0   1_category          A |
    134. | 739515          0          1_p            |
    135. | 739515          0   2_category          B |
    136. | 739515          0          2_p          1 |
    137. | 739515          0   3_category          C |
    138. | 739515          0          3_p          1 |
    139. | 739515          1   1_category          A |
    140. | 739515          1          1_p         10 |
    141. | 739515          1   2_category          B |
    142. | 739515          1          2_p          3 |
    143. | 739515          1   3_category          C |
    144. | 739515          1          3_p            |
         |-------------------------------------------|
    145. | 739516          0   1_category          A |
    146. | 739516          0          1_p            |
    147. | 739516          0   2_category          B |
    148. | 739516          0          2_p          5 |
    149. | 739516          0   3_category          C |
    150. | 739516          0          3_p          3 |
    151. | 739516          1   1_category          A |
    152. | 739516          1          1_p          8 |
    153. | 739516          1   2_category          B |
    154. | 739516          1          2_p         10 |
    155. | 739516          1   3_category          C |
    156. | 739516          1          3_p            |
         |-------------------------------------------|
    157. | 739517          0   1_category          A |
    158. | 739517          0          1_p            |
    159. | 739517          0   2_category          B |
    160. | 739517          0          2_p          4 |
    161. | 739517          0   3_category          C |
    162. | 739517          0          3_p          1 |
    163. | 739517          1   1_category          A |
    164. | 739517          1          1_p         10 |
    165. | 739517          1   2_category          B |
    166. | 739517          1          2_p          8 |
    167. | 739517          1   3_category          C |
    168. | 739517          1          3_p            |
         |-------------------------------------------|
    169. | 739519          0   1_category          G |
    170. | 739519          0          1_p            |
    171. | 739519          0   2_category          H |
    172. | 739519          0          2_p          1 |
    173. | 739519          0   3_category          I |
    174. | 739519          0          3_p          1 |
    175. | 739519          1   1_category          G |
    176. | 739519          1          1_p          8 |
    177. | 739519          1   2_category          H |
    178. | 739519          1          2_p          9 |
    179. | 739519          1   3_category          I |
    180. | 739519          1          3_p            |
         +-------------------------------------------+
    
    . 
    . *IF YOU NEED TO RESHAPE WIDE
    
    . 
    . reshape wide copm_goal , i(id timepoint_label) j(which) string
    (j = 1_category 1_p 2_category 2_p 3_category 3_p)
    
    Data                               Long   ->   Wide
    -----------------------------------------------------------------------------
    Number of observations              180   ->   30          
    Number of variables                   4   ->   8           
    j variable (6 values)             which   ->   (dropped)
    xij variables:
                                  copm_goal   ->   copm_goal1_category copm_goal1_p ... copm_goal3_p
    -----------------------------------------------------------------------------
    
    . 
    . l, sepby(id)
    
         +-------------------------------------------------------------------------------------+
         |     id   timepo~l   copm_g..   copm~1_p   copm_g..   copm~2_p   copm_g..   copm~3_p |
         |-------------------------------------------------------------------------------------|
      1. |  73951          0          A                     B          5          C          2 |
      2. |  73951          1          A          4          B         10          C            |
         |-------------------------------------------------------------------------------------|
      3. |  73952          0          A                     B          3          C          1 |
      4. |  73952          1          B          7          C         10          E            |
         |-------------------------------------------------------------------------------------|
      5. |  73954          0          A                     B          5          C          4 |
      6. |  73954          1          A          5          B         10          C            |
         |-------------------------------------------------------------------------------------|
      7. |  73955          0          A                     C          3          D          4 |
      8. |  73955          1          A          7          C          9          D            |
         |-------------------------------------------------------------------------------------|
      9. |  73956          0          A                     B          2          C          3 |
     10. |  73956          1          A          8          B          3          C            |
         |-------------------------------------------------------------------------------------|
     11. |  73957          0          A                     B          2          D          3 |
     12. |  73957          1          C         10          B          7          D            |
         |-------------------------------------------------------------------------------------|
     13. |  73958          0          A                     B          3          C          1 |
     14. |  73958          1          A          8          B          7          C            |
         |-------------------------------------------------------------------------------------|
     15. | 739510          0          A                     B          4          C          4 |
     16. | 739510          1          F          2          B          7          C            |
         |-------------------------------------------------------------------------------------|
     17. | 739512          0          J                     I          4          H          5 |
     18. | 739512          1          J          7          I         10          H            |
         |-------------------------------------------------------------------------------------|
     19. | 739513          0          A                     B          1          C          1 |
     20. | 739513          1          A          8          B          8          C            |
         |-------------------------------------------------------------------------------------|
     21. | 739514          0          A                     B          1          C          3 |
     22. | 739514          1          A          6          B          9          C            |
         |-------------------------------------------------------------------------------------|
     23. | 739515          0          A                     B          1          C          1 |
     24. | 739515          1          A         10          B          3          C            |
         |-------------------------------------------------------------------------------------|
     25. | 739516          0          A                     B          5          C          3 |
     26. | 739516          1          A          8          B         10          C            |
         |-------------------------------------------------------------------------------------|
     27. | 739517          0          A                     B          4          C          1 |
     28. | 739517          1          A         10          B          8          C            |
         |-------------------------------------------------------------------------------------|
     29. | 739519          0          G                     H          1          I          1 |
     30. | 739519          1          G          8          H          9          I            |
         +-------------------------------------------------------------------------------------+
    
    .

    Comment


    • #3
      Thanks so much for replying. I am struggling to explain the problem in a way that makes sense. Unfortunately your solution doesn't work - the wrong values are replaced.

      For example, id==73951 is already correct (A, B and C appear in both timepoints, no need to replace any data).

      The mismatched letters are not always in the same configuration as the example I gave in my original question. E.g. for id==739510, goal letters A and J are mismatched between the two timepoints, but they do appear in the same variable (copm_goal1_p).

      This is a very large dataset and of course I could do this manually but I really need a way to automate it.

      Recall that within the same timepoint, the goal letter (stored in copm_goal#_category) relates to the rating variable with the same prefix i.e. goal# (stored in copm_goal#_p). Between the timepoints, there are many examples (not shown well in my dataex) where the goal letters are completely jumbled. I need a way to use the letter to link the two different goal# so that I can replace the corresponding value of copm_goal#_p with missing data for letters that only appear in one of the two timepoints.

      Comment


      • #4
        Code:
        * Example generated by -dataex-. For more info, type help dataex
        clear
        input long id str1 copm_goal1_category byte copm_goal1_p str1 copm_goal2_category byte copm_goal2_p str1 copm_goal3_category byte copm_goal3_p float timepoint_label
         73951 "A"  1 "B"  5 "C"  2 0
         73951 "A"  4 "B" 10 "C"  9 1
         73952 "A"  6 "B"  3 "C"  1 0
         73952 "B"  7 "C" 10 "E"  6 1
         73954 "A"  2 "B"  5 "C"  4 0
         73954 "A"  5 "B" 10 "C"  9 1
         73955 "A"  6 "C"  3 "D"  4 0
         73955 "A"  7 "C"  9 "D"  8 1
         73956 "A"  4 "B"  2 "C"  3 0
         73956 "A"  8 "B"  3 "C"  3 1
         73957 "A"  5 "B"  2 "D"  3 0
         73957 "C" 10 "B"  7 "D" 10 1
         73958 "A"  1 "B"  3 "C"  1 0
         73958 "A"  8 "B"  7 "C" 10 1
        739510 "A"  2 "B"  4 "C"  4 0
        739510 "F"  2 "B"  7 "C"  9 1
        739512 "J"  5 "I"  4 "H"  5 0
        739512 "J"  7 "I" 10 "H"  7 1
        739513 "A"  2 "B"  1 "C"  1 0
        739513 "A"  8 "B"  8 "C"  7 1
        739514 "A"  1 "B"  1 "C"  3 0
        739514 "A"  6 "B"  9 "C"  8 1
        739515 "A"  1 "B"  1 "C"  1 0
        739515 "A" 10 "B"  3 "C"  7 1
        739516 "A"  5 "B"  5 "C"  3 0
        739516 "A"  8 "B" 10 "C" 10 1
        739517 "A"  6 "B"  4 "C"  1 0
        739517 "A" 10 "B"  8 "C" 10 1
        739519 "G"  2 "H"  1 "I"  1 0
        739519 "G"  8 "H"  9 "I"  7 1
        end
        
        tostring copm*, replace force
        reshape long copm_goal , i(id timepoint_label) j(which) string
        gen val= ustrregexra(which, "(.*)\_(.*)", "$1")
        gen dim= ustrregexra(which, "(.*)\_(.*)", "$2")
        drop which
        reshape wide copm_, i(id timepoint val) j(dim) string
        rename copm_goal* *
        bys id category (timepoint): replace p="" if _N!=2
        Probably best to leave the data like this, but you can return it to a wide layout if absolutely necessary.

        Res.:

        Code:
        . l, sepby(id)
        
             +-----------------------------------------+
             |     id   timepo~l   val   category    p |
             |-----------------------------------------|
          1. |  73951          0     1          A    1 |
          2. |  73951          1     1          A    4 |
          3. |  73951          0     2          B    5 |
          4. |  73951          1     2          B   10 |
          5. |  73951          0     3          C    2 |
          6. |  73951          1     3          C    9 |
             |-----------------------------------------|
          7. |  73952          0     1          A      |
          8. |  73952          0     2          B    3 |
          9. |  73952          1     1          B    7 |
         10. |  73952          0     3          C    1 |
         11. |  73952          1     2          C   10 |
         12. |  73952          1     3          E      |
             |-----------------------------------------|
         13. |  73954          0     1          A    2 |
         14. |  73954          1     1          A    5 |
         15. |  73954          0     2          B    5 |
         16. |  73954          1     2          B   10 |
         17. |  73954          0     3          C    4 |
         18. |  73954          1     3          C    9 |
             |-----------------------------------------|
         19. |  73955          0     1          A    6 |
         20. |  73955          1     1          A    7 |
         21. |  73955          0     2          C    3 |
         22. |  73955          1     2          C    9 |
         23. |  73955          0     3          D    4 |
         24. |  73955          1     3          D    8 |
             |-----------------------------------------|
         25. |  73956          0     1          A    4 |
         26. |  73956          1     1          A    8 |
         27. |  73956          0     2          B    2 |
         28. |  73956          1     2          B    3 |
         29. |  73956          0     3          C    3 |
         30. |  73956          1     3          C    3 |
             |-----------------------------------------|
         31. |  73957          0     1          A      |
         32. |  73957          0     2          B    2 |
         33. |  73957          1     2          B    7 |
         34. |  73957          1     1          C      |
         35. |  73957          0     3          D    3 |
         36. |  73957          1     3          D   10 |
             |-----------------------------------------|
         37. |  73958          0     1          A    1 |
         38. |  73958          1     1          A    8 |
         39. |  73958          0     2          B    3 |
         40. |  73958          1     2          B    7 |
         41. |  73958          0     3          C    1 |
         42. |  73958          1     3          C   10 |
             |-----------------------------------------|
         43. | 739510          0     1          A      |
         44. | 739510          0     2          B    4 |
         45. | 739510          1     2          B    7 |
         46. | 739510          0     3          C    4 |
         47. | 739510          1     3          C    9 |
         48. | 739510          1     1          F      |
             |-----------------------------------------|
         49. | 739512          0     3          H    5 |
         50. | 739512          1     3          H    7 |
         51. | 739512          0     2          I    4 |
         52. | 739512          1     2          I   10 |
         53. | 739512          0     1          J    5 |
         54. | 739512          1     1          J    7 |
             |-----------------------------------------|
         55. | 739513          0     1          A    2 |
         56. | 739513          1     1          A    8 |
         57. | 739513          0     2          B    1 |
         58. | 739513          1     2          B    8 |
         59. | 739513          0     3          C    1 |
         60. | 739513          1     3          C    7 |
             |-----------------------------------------|
         61. | 739514          0     1          A    1 |
         62. | 739514          1     1          A    6 |
         63. | 739514          0     2          B    1 |
         64. | 739514          1     2          B    9 |
         65. | 739514          0     3          C    3 |
         66. | 739514          1     3          C    8 |
             |-----------------------------------------|
         67. | 739515          0     1          A    1 |
         68. | 739515          1     1          A   10 |
         69. | 739515          0     2          B    1 |
         70. | 739515          1     2          B    3 |
         71. | 739515          0     3          C    1 |
         72. | 739515          1     3          C    7 |
             |-----------------------------------------|
         73. | 739516          0     1          A    5 |
         74. | 739516          1     1          A    8 |
         75. | 739516          0     2          B    5 |
         76. | 739516          1     2          B   10 |
         77. | 739516          0     3          C    3 |
         78. | 739516          1     3          C   10 |
             |-----------------------------------------|
         79. | 739517          0     1          A    6 |
         80. | 739517          1     1          A   10 |
         81. | 739517          0     2          B    4 |
         82. | 739517          1     2          B    8 |
         83. | 739517          0     3          C    1 |
         84. | 739517          1     3          C   10 |
             |-----------------------------------------|
         85. | 739519          0     1          G    2 |
         86. | 739519          1     1          G    8 |
         87. | 739519          0     2          H    1 |
         88. | 739519          1     2          H    9 |
         89. | 739519          0     3          I    1 |
         90. | 739519          1     3          I    7 |
             +-----------------------------------------+

        Comment

        Working...
        X