GithubHelp home page GithubHelp logo

g-rppl / movetrack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8.03 MB

Estimate flight tracks from radio-telemetry data using a Hidden Markov Model.

Home Page: https://g-rppl.github.io/movetrack

License: Other

R 89.49% Stan 10.51%
movement-ecology movement-modeling r random-walk stan motus telemetry hmm

movetrack's Introduction

movetrack

R-CMD-check codecov Universe License: MIT

movetrack is an R package that provides simple functionality to estimate individual flight tracks from radio-telemetry data such as Motus using random walk models written in Stan.

Installation

You can install movetrack from the R Universe with

install.packages("movetrack", repos = c("https://g-rppl.r-universe.dev", getOption("repos")))

To instead install the latest development version of the package from GitHub use

devtools::install_github("g-rppl/movetrack@dev")

During the initial installation, make sure that the C++ toolchain required for CmdStan is set up properly. You can find more information here.

library(cmdstanr)
check_cmdstan_toolchain(fix = TRUE)

If not, go to https://mc-stan.org/docs/cmdstan-guide/cmdstan-installation.html#cpp-toolchain and follow the instructions for your platform. Once your toolchain is configured correctly CmdStan can be installed:

install_cmdstan(cores = 2)

Details

This package provides two main functions: locate() and track(). The first function calculates location estimates based on antenna bearing and signal strength. The second function estimates individual flight paths based on the estimated locations using a Hidden Markov Model written in Stan.

Getting started

You can find a quickstart example in the vignette movetrack_example.

References

Auger‐Méthé, M., Newman, K., Cole, D., Empacher, F., Gryba, R., King, A. A., ... & Thomas, L. (2021). A guide to state–space modeling of ecological time series. Ecological Monographs, 91(4), e01470. doi:10.1002/ecm.1470

Baldwin, J. W., Leap, K., Finn, J. T., & Smetzer, J. R. (2018). Bayesian state-space models reveal unobserved off-shore nocturnal migration from Motus data. Ecological Modelling, 386, 38-46. doi:10.1016/j.ecolmodel.2018.08.006

Jonsen, I. D., Flemming, J. M., & Myers, R. A. (2005). Robust state–space modeling of animal movement data. Ecology, 86(11), 2874-2880. doi:10.1890/04-1852

movetrack's People

Contributors

g-rppl avatar

Stargazers

Jonas Höchst avatar

Watchers

 avatar

movetrack's Issues

`locate()` returns NaN

If in a time interval the only signal equals the minimum signal strength (sig = 0), the weighted mean returns NaN.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.