Giter VIP home page Giter VIP logo

binder-plant-cover's Introduction

Modeling plant abundance data

This repository contains an introduction to Bayesian modeling of two kinds of plant abundance data, counts and cover. Plant abundance data are commonly collected as part of vegetation surveys, but due to the clumped nature of plant distributions, can be difficult to model with frequentist tools. Common features include many zeros, non-normality, overdispersion, etc.

Thus, the models presented here are not simple or straightforward. They include:

  1. A Poisson model of count with observation-level random effects nested within block random effects
  2. A zero/one inflated beta model of cover with block random effects

File structure

Exploring_plant_abundance.Rmd is a summary of data exploration that informed the Bayesian models and published here.

data/ contains separate csv files of count and cover

models/ contains 3 models:

  • count-invasive/ contains the control and model script for invasive grass counts
  • cover-invasive/ contains the control and model script for invasive grass cover
  • cover-native/ contains the control, model, and plotting script for native grass cover

Each model folder also contains .Rdata files of the starting values at convergence inits.Rdata and the posterior chains coda.Rdata.

Requirements

The models run in JAGS using the R packages 'rjags', 'coda', 'mcmcplots', 'tidyverse', and optionally, 'broom.mixed', 'ggthemes', and 'cowplot'.

This repository can be run remotely using Binder

Note that changes made in the Binder instance must be downloaded in order to be saved.

binder-plant-cover's People

Watchers

 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.