npp97 / dendroTools

dendroTools github repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dendroTools

The core purpose of the dendroTools package is to introduce novel dendroclimatological methods to study linear and nonlinear relationships between environmental (climate) data and tree-ring sequences. Currently, there are two core functions. The first core function is the daily_response(), which finds the optimal sequence of days that are linearly or nonlinearly related to a tree-ring proxy records. The second core function is compare_methods() which calculates several performance metrics for train and test data for different regression methods.

To use daily_response(), two data frames are required, one with daily climate data, e.g. mean daily temperature; and one with tree-ring proxy records. Example data is provided, so users can see, how data frames should be organized. The daily_response() calculates all possible values of a selected statistical metric between response variable(s) and daily environmental data. Calculations are based on a moving window, which runs through daily environmental data and calculates moving averages.

compare_methods() calculates performance metrics for multiple linear regression (MLR), artificial neural networks with Bayesian regularization training algorithm (BRNN), M5P model trees (MT), model trees with bagging (BMT) and random forest of regression trees (RF). Calculated performance metrics are correlation coefficient (r), root mean squared error (RMSE), root relative squared error (RRSE), index of agreement (d), reduction of error (RE), coefficient of efficiency (CE) and mean bias.

Installation

You can install dendroTools using:

library("devtools")
devtools::install_github("jernejjevsenak/dendroTools") # current version under development

install.packages("dendroTools") # from CRAN

Authors

  • Jernej Jevšenak

About

dendroTools github repository


Languages

Language:R 100.0%