-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hidden_paths does not respect sequence length #58
Comments
The |
In my case, and I suspect in many cases, they are not true "missing" observations. The sequences simply have different length. I will add a check in my code to reset these positions to void until you are able to add this option. |
Yes this makes sense. I just pushed an update, the |
Seems to be working fine. Thanks for the quick fix |
Perhaps I am missing something, but if I input sequence data where each sequence is a different length and estimate an HMM, running
mpp <- hidden_paths(hmm$model)
results in a "dense" matrix (all observations are assigned a state and no voids appear). Are there options to have it respect the void elements? Should I just set those to void ex post?This is particularly problematic for me because I am then calling things like
dur_output <- seqistatd(mpp)
which of course gives nonsense results because thempp
sequences have these psuedo elements added relative to the original input data.The text was updated successfully, but these errors were encountered: