Provides methods for analyzing the relationships between tree-ring proxies and daily or monthly climate data. daily_response() and monthly_response() aggregate climate data over moving windows of different widths and positions, optionally extending into previous years. For each window, they calculate the correlation (Pearson, Spearman or Kendall) with a proxy, or the explained variance of linear models or Bayesian regularized neural networks with one or more proxies, and find the window with the strongest relationship. daily_response_seascorr() and monthly_response_seascorr() calculate partial correlations between a proxy and a primary climate variable, controlling for a second one, following 'seascorr' by Meko et al. (2011) <doi:10.1016/j.cageo.2011.01.013>. They also partition the variance explained in the optimal window between the two variables and can calculate the partial correlations of the second variable. The climate data in each window can be aggregated as means, sums and other statistics, or as the Standardized Precipitation-Evapotranspiration Index (SPEI) by Vicente-Serrano et al. (2010) <doi:10.1175/2009JCLI2909.1>, calculated from the climatic water balance that water_balance() derives from precipitation and temperature. The aggregated climate series can be detrended linearly or with the spline, mean, autoregressive and Friedman methods of dplR::detrend(). Windows that are not significant can be removed with a per-window test or with corrections for multiple testing. Bootstrap confidence intervals are available, and the optimal window can be checked for temporal stability and by cross-validation. compare_methods() compares multiple linear regression, neural networks, model trees and random forests for climate reconstruction. The methods are described in Jevsenak and Levanic (2018) <doi:10.1016/j.dendro.2018.01.005>, Jevsenak et al. (2018) <doi:10.1016/j.dendro.2018.10.001> and Jevsenak (2020) <doi:10.1016/j.dendro.2020.125753>.
Package details |
|
|---|---|
| Author | Jernej Jevsenak [aut, cre] |
| Maintainer | Jernej Jevsenak <jernej.jevsenak@gmail.com> |
| License | GPL-3 |
| Version | 2.0.0 |
| URL | https://github.com/jernejjevsenak/dendroTools |
| Package repository | View on CRAN |
| Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.