Skip to content

R package for working with spatial absorbing Markov chains

License

AGPL-3.0, AGPL-3.0 licenses found

Licenses found

AGPL-3.0
LICENSE
AGPL-3.0
LICENSE.md
Notifications You must be signed in to change notification settings

andrewmarx/samc

Repository files navigation

samc

CRAN_Status_Badge metacran downloads Gitter

Introduction

This is an R package that implements functions for working with absorbing Markov chains using theorems described in the book "Finite Markov Chains" by Kemeny and Snell. The design of this package is based on the implementation of these theorems in the framework described by Fletcher et al. in Toward a unified framework for connectivity that disentangles movement and mortality in space and time (Ecology Letters, 2019; DOI: 10.1111/ele.13333), which applies them to spatial ecology. Despite the ecological context of the package, these functions can be used in any application of absorbing Markov chains.

For more information, and recommended installation instructions, most users should visit the main home page at https://andrewmarx.github.io/samc. The remainder of this document is dedicated to installing the package from the source (not recommended).

Installing From GitHub

Pre v1.0.0

Specific versions of the package can be installed by using the ref parameter. In the case of Fletcher et al. (2019), version 0.1.0 of the package was used. To run the code example in the SI of that paper, you would need to install that specific version of samc using:

devtools::install_github("andrewmarx/samc", ref = "0.1.0")

v1.0.0 and Later

Version 1.0.0 and newer requires C++ development tools to install from source. The steps required to install the appropriate development tools vary by the operating system and are beyond the scope of this document. Users will have to locate and follow appropriate external documentation to set up the devtools if they wish to install the newest version of the samc package from the source.

If the devtools are installed and setup correctly, then the latest version of the package can be installed directly from GitHub using the following command:

devtools::install_github("andrewmarx/samc")

Support

We have a Github discussions page for anything and everything related to the package here: Github Discussions