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):
Then I calculate the substitution matrix based on transition frequencies:

Then, I reshape the data wide and use "oma"
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

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):
Then I calculate the substitution matrix based on transition frequencies:
Then, I reshape the data wide and use "oma"
Any advice on how to fix this problem?
Thank you so much!
-Lucia