Giter VIP home page Giter VIP logo

gdk_vs_customized's Introduction

Comparing generalized to customized invasive pest dispersal models

This folder includes the data and code necessary to replicate Hudgins et al. (2019) "Comparing generalized and customized spread models for non-native forest pests". Ecological Applications.

The code was written by Emma J. Hudgins, PhD candidate, McGill University

For any questions, e-mail me at [email protected]

This code is licensed under the GPL v3.0. Please cite this GitHub folder and the associated publication upon re-use.

The folder contains 4 main R scripts along with associated functions called by each script.

  1. customized_models.R - this fits the fully context specific models for each of the 3 focal species based on the best fit to year 2000. Validation is then performed on 2005.

  2. GDK_3spp.R - this fits and/or validates the various levels of SDK correction (including uncorrected GDK for each of the 3 focal species)

  3. GDK_forecast.R - this fits (no validation) the relevant SDK corrections for the remaining species in the dataset. Species #3 (Asian longhorn beetle) should be removed from analysis based on the Corrigendum to Hudgins et al. (2017)

  4. plot_GDK_vs_custom_models.R - this is the plotting script to generate predicted and observed distribution maps in 2005 (validation year) based on the fits of various models. Example input is given for HWA's best models (uncorrected GDK, SDK, customized).

The first 2 scripts call r2_om_mse.R (which itself calls om_mse.R) during the validation phase. These scripts can optionally call random_nn_spp_2019.R in order to generate new null model draws for which to calculate R2om, but this is a time-consuming process, so output has been provided.

All data files are described in the script that calls them.

gdk_vs_customized's People

Contributors

emmajhudgins avatar

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.