Announcement

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

  • Identify repeating sequence in an array stata


    Dear list members, I am using Time Use Surveys that include observation on people activities on 10 minute interval. Each activity is coded on a 10 minutes interval. I would like to find the repeating sequence of activities and the number of times it occurred in an array. For example:
    A=[44 68 91 876 44 68 91 44 68 91 54 44 68 91]; the repeated sequence is 44 68 91; number of times is 4
    Thank you for your help

  • #2
    Some ideas, please

    Comment


    • #3
      Mate: This does not look like a posting specifically relevant to Mata. I recommend that you post this in the "General" Statalist forum where it is likely to get much more attention.

      Comment


      • #4
        Thank you

        Comment

        Working...
        X