Giter Site home page Giter Site logo

jeremieboudreault / fish_habitat_modelling_functional_regression Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.78 MB

Scientific research modelling the fish physico-thermal habitat with a functional regression model.

Home Page: https://www.tandfonline.com/doi/abs/10.1080/24705357.2020.1840313

R 100.00%
functional-regression ecological-modelling statistical-learning atlantic-salmon

fish_habitat_modelling_functional_regression's Introduction

Fish habitat modelling using functional regression 🐟

  • A scientific research by Jeremie Boudreault, Fateh Chebana, AndrΓ© St-Hilaire and Normand Bergeron
  • This project was part of my master degree in water sciences at Institut National de la Recherche Scientifique.
  • All codes and data are made available here under the Creative Common License .
  • The research article was published in Journal of Ecohydraulics on 09/02/2021.
  • Questions regarding the code or the data should be sent to [email protected].

Data

Data are from field survey that have been conducted during summer 2017 on the Sainte-Marguerite river (SMR) :

  • data/field/* : contains the raw .xlsx file filled after each day of field work
  • data/* : contains the cleaned and transformed datasets

R scripts

Scripts are all from Jeremie Boudreault. They use the R package mgcv to fit generalized additive models (GAM) and of FDboost to fit functional regression models (FRM) :

  • R/Data_initial_cleaning.R : code to clean the field data spreadsheets and produce more adapted datasets
  • R/Data_salmons_lengths.R: code to convert the salmon lengths to number of fry and parr
  • R/Data_per_site.R : code to produce the observations at each site (mean value or functional observations)
  • R/GAMs_all.R : code to fit several types of GLM/GAM on the data using the mgcv package
  • R/GAMs_best.R : among all models, do variable selection to find the best GAM models and save them to out/models
  • R/GAMs_predictions : code to calculate the leave-one-out predictions for the GAMs
  • R/FRMs_all.R : code to fit several types of FRM on the data using the FDboost package
  • R/FRMs_best.R : among all models, select the best FRM models and save them to out/models
  • R/FRMs_predictions : code to calculate the leave-one-out predictions for the FRMs
  • R/Models_coefficients.R : code to extract the coefficients of the best models
  • R/Models_performance.R : compare the results between GAMs and FRMs

Results

A folder for the results at each part of the coding process :

  • out/data visualisation/* : raw data visualisation and tables
  • out/models/* : fitted final models
  • out/coefficients/* : coefficients of the models
  • out/predictions/* : leave-one-out predictions and goodness-of-fit

fish_habitat_modelling_functional_regression's People

Contributors

jeremieboudreault avatar

Stargazers

 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.