Skip to content

HMM for one-dimensional data with negative step lengths #106

Answered by bmcclintock
mksfyd asked this question in Q&A
Discussion options

You must be logged in to vote

I suppose you could try and model these using a normal distribution, in which case mean can be any real value (positive or negative) and sd must be positive. As long as these conditions are met, you should not be getting an error message; thus, in addition to checking that sd is positive, you might want to check the order of your stepPar initial values, which should be c(mean_1, mean_2, mean_3, sd_1, sd_2, sd_3).

However, one potential problem with the normal distribution is that this would not necessarily or effectively forbid "Diving" from being positive, "Constant" from being negative or positive (unless of course mean_2 is fixed to zero and sd_2 is fixed to an extremely small positive…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bmcclintock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants