Git Product home page Git Product logo

cbfm's Introduction

CBFM (Community-level basis function models)

CRAN status Lifecycle: experimental

CBFM is an R package for spatial and spatio-temporal joint species distributing modeling of multivariate abundance data, based on the idea of using community-level (species-common) basis functions. It offers an alternative and connected (but by no means necessarily superior) approach to the popular spatio-temporal generalized linear latent variable model (GLLVM) method.

As the name suggests, community-level basis function models (CBFMs) is built on the idea of fixed-rank kriging (FRK), where spatially- and/or temporally-indexed basis functions are included to account for spatio-temporal correlations within and between species. In doing so, CBFMs bear a lot of similarity to and thus can be set up as a type of (big) generalized additive model or GAM. This in turns allows CBFMs to be estimated in a computationally efficient and scalable manner, by adapting some of the existing machinery available for fitting and performing inference with GAMs.

Installation

Currently, CBFM is available and can be installed from github with the help of devtools package using:

devtools::install_github("fhui28/CBFM")

Alternatively, or if the above does not work, you may download a (supposedly) stable release of CBFM by choosing the latest release on the right hand side of this Github webpage, and install it manually on your machine.

Getting started

A first manuscript introducing CBFMs to ecologists is currently under review in a journal-that-must-not-be-named. For getting started with CBFM though, we recommend installing it and reading the help file for the main CBFM function. For broad introductions to joint species distribution modeling, especially using GLLVMs, we suggest So Many Variables: Joint Modeling in Community Ecology, How to make more out of community data? A conceptual framework and its implementation as models and software, A comparison of joint species distribution models for presence–absence data Joint dynamic species distribution models: a tool for community ordination and spatio-temporal monitoring and Understanding co-occurrence by modelling species simultaneously with a Joint Species Distribution Model (JSDM), along with the textbook Joint Species Distribution Modelling, with Applications in R.

There are also some existing and good \texttt{R} packages to fit joint species distribution models using GLLVMs, including: Hmsc, GLLVM, boral, and VAST, among others. Some but not all of them have capacity to handle spatio-temporal multivariate abundance data using spatio-temporal GLLVMs, or variations thereof.

For general introductions to spatial and/or temporal modeling using basis functions, please check out the excellent FRK package for fixed0rank kriging, which heavily inspired this package. Please also see the accompanying software article FRK: An R Package for Spatial and Spatio-Temporal Prediction with Large Datasets and references therein. A more gentle but nevertheless fantastic introduction to basis functions for modeling correlations aimed at ecologists is provided by The basis function approach for modeling autocorrelation in ecological data. Finally, it would be remiss not to highlight the seminar textbook Generalized Additive Models: An Introduction with R, and the accompanying mgcv package, which this package both utilizes and takes much inspiration from.

If you find any bugs and issues...

If you find something that looks like a bug/issue, please let us know report it, so that we can resolve it and continue to improve this project (interest and time pending). To report a bug/issue, please make use of the Github issues and post it up there. As much as possible, please include in the issue:

  1. A description of the bug/issue;
  2. Paste-able code along with some comments that reproduces the problem e.g., using the reprex package. If you also have an idea of how to fix the problem (Francis tends to make a lot of mistakes in my code, so some may be easy amendments!), then that is also much appreciated.
  3. Required data files etc...

Thanks heaps!

Finally, please note Github issues is a place to post any bugs/issues/unusual behavior in relation to the package. Please try to refrain from posting any feature requests of general statistical modeling questions. They will very likely be ignored and/or deleted without prior consent. You are probably better off emailing one of the package maintainers instead. Much appreciated!

cbfm's People

Contributors

fhui28 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.