Coder Social home page Coder Social logo

hmsc's Introduction

HMSC

The Hierarchical Modelling of Species Communities (HMSC) framework described in Ovaskainen et al. (2017). This framework uses Bayesian hierarchical modelling to account for environment, traits and phylogeny to model species communities. In addition, this framework also include and spatially (or temporally) autocorrelated latent variables to measure association among species. This R package implements all aspects of Ovaskainen et al. (2017) but is a work in progress that aims at going beyond the ideas presented in Ovaskainen et al. (2017).

This version of the R package is in development.

Installing HMSC

To install this development version of HMSC you can use the install_github function in the devtools package, like this:

### Install devtools (if you do not have them already)
# install.packages('devtools')

### Install depend packages (if you do not have them already)
# install.packages('Rcpp')
# install.packages('RcppArmadillo')
# install.packages('coda')

### Install suggested packages (if you do not have them already)
# install.packages('beanplot')
# install.packages('circlize')
# install.packages('corrplot')
# install.packages('coda')

# load the package
library(devtools)

# install HMSC from github
install_github('guiblanchet/HMSC')

# and load it
library(HMSC)

This installing is somewhat long, it take roughly 15 minutes, do not despair.

Note that many parts of the R package have been implemented using Rcpp, RcppArmadillo and C++11. This has been known to cause some installation issues especially under Mac OS X. Essentially, these problems arise because of C/C++ and Fortran compiler related issues. So far, these problems have been solved by following the explanation presented in section 2.10 and 2.16 of http://dirk.eddelbuettel.com/code/rcpp/Rcpp-FAQ.pdf.

More information on this issue is given here: http://thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error/

Reporting bugs

If you find a bug in the code or have suggestions for improvements, please let me know via the issues reporting system

Reference

Ovaskainen, O., G. Tikhonov, A. Norberg, F. Guillaume Blanchet, L. Duan, D. Dunson, T. Roslin, and N. Abrego. 2017. How to make more out of community data? A conceptual framework and its implementation as models and software. Ecology Letters 20:561โ€“576.

hmsc's People

Contributors

guiblanchet avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.