This archive includes code to recreate the main analyses of the following article: Klappstein NJ, L Thomas, and T Michelot. 2023. Flexible hidden Markov models for behaviour-dependent habitat selection. Movement Ecology 11:30. https://doi.org/10.1186/s40462-023-00392-3. See README for details.