Announcement

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

  • Sequence analysis - Issue with missing data

    Hello,
    I am doing sequence analysis using Halpin's SADI package. I have three states (1, 2, 3) and sequences of unequal length (some of them end earlier).
    Here is an example of what a shorter sequence looks like - my time variable is "week", and the longest sequences is 101 weeks long. I have a group of sequences that do not have data starting at week 76 (See example at the end).

    When I set the data with "sqset", the following message appears (I have tried both with and without the "rtrim" option):
    Click image for larger version

Name:	Screen Shot 2023-03-22 at 3.44.27 PM.png
Views:	1
Size:	28.4 KB
ID:	1706702

    Then I calculate the substitution matrix based on transition frequencies:

    Screen Shot 2023-03-22 at 3.46.22 PM.png

    Then, I reshape the data wide and use "oma"
    Screen Shot 2023-03-22 at 3.48.52 PM.png
    As you can see, the dissimilarity matrix is not generated and there is an error message. Looks like there is an issue with missing data, since it says that states must be between 1 and 3, and missing values are considered "out of range".

    Any advice on how to fix this problem?

    Thank you so much!

    -Lucia




    Click image for larger version

Name:	Screen Shot 2023-03-22 at 3.38.33 PM.png
Views:	1
Size:	135.4 KB
ID:	1706701












Working...
X