Possible issue with formula in Vignettes file #171
-
Thank you for developing such a great R package! While using the momentuHMM package, I came across a small issue. On page 59 of the Guide to using momentuHMM, there is a formula that may have an issue. In my opinion, the correct formula should be(logit is corrected as log): Thank you again for developing such a great R package! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for your message. {momentuHMM} uses the logit link for any parameters with finite lower and upper bounds. In this case, the lower bound is 0 and the upper bound is 14400, and the logit link ensures the real parameters stay within these bounds (as the inverse logit link is bound between 0 and 1). If one were to use the log link, then the lower bound would be 0 and the upper bound would infinite (as the inverse log link is bound between 0 and infinity). |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. I understand your point and the logic behind it. This is why the caption for table 2 states, "If user-specified parameter bounds are provided, then custom link functions are used instead of the defaults (see package documentation for further details)." According to table 2, for the Weibull distribution, when the shape parameter is greater than 0, the default link function is "log." However, in this example, with finite bounds provided, the link function changes from "log" to "logit." |
Beta Was this translation helpful? Give feedback.
Thanks for your message. {momentuHMM} uses the logit link for any parameters with finite lower and upper bounds. In this case, the lower bound is 0 and the upper bound is 14400, and the logit link ensures the real parameters stay within these bounds (as the inverse logit link is bound between 0 and 1). If one were to use the log link, then the lower bound would be 0 and the upper bound would infinite (as the inverse log link is bound between 0 and infinity).