Skip to content

momentuHMM initialization #84

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

You must be logged in to vote

The random effects in momentuHMM >=1.5.0 are discrete-valued and at the individual level (sensu McKellar et al., Towner et al., and DeRuiter et al.). They are specified via the 'mixtures' and 'formulaPi' arguments in the fitHMM and MIfitHMM functions. So if one wants, say, 2 mixtures with sex effects on the mixture probabilities, then one would specify mixtures = 2 and formulaPi = ~SEX. One could also include 'SEX' in the 'formula' argument to include fixed sex effects on both the t.p.m. and mixture probabilities. Covariate terms can only be included as fixed effects in 'formula', 'formulaDelta', and 'formulaPi' (and covariates that change over time should not be included in 'formulaPi').

C…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bmcclintock
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #22 on April 28, 2021 21:36.