dendroTools: Linear and Nonlinear Methods for Analyzing Daily and Monthly Dendroclimatological Data

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>.

Version: 2.0.0
Depends: R (≥ 3.5.0)
Imports: ggplot2 (≥ 2.2.0), brnn (≥ 0.6), reshape2 (≥ 1.4.2), scales (≥ 0.4.1), stats, oce (≥ 1.2-0), MLmetrics (≥ 1.1.1), dplyr (≥ 0.7.0), knitr (≥ 1.19), magrittr (≥ 1.5), plotly (≥ 4.7.1), randomForest (≥ 4.6-14), Cubist (≥ 0.2.2), lubridate (≥ 1.7.4), psych (≥ 1.8.3.3), boot (≥ 1.3-22), viridis (≥ 0.5.1), dplR (≥ 1.7.2)
Suggests: testthat, rmarkdown, SPEI
Published: 2026-11-23
DOI: 10.32614/CRAN.package.dendroTools
Author: Jernej Jevsenak [aut, cre]
Maintainer: Jernej Jevsenak <jernej.jevsenak at gmail.com>
BugReports: https://github.com/jernejjevsenak/dendroTools/issues
License: GPL-3
URL: https://github.com/jernejjevsenak/dendroTools
NeedsCompilation: no
Citation: dendroTools citation info
Materials: NEWS
CRAN checks: dendroTools results

Documentation:

Reference manual: dendroTools.html , dendroTools.pdf
Vignettes: Compare_different_regression_methods (source, R code)
Detrending_climate_data (source, R code)
Examples_with_daily_climate_data (source, R code)
Modify_plots_with_ggplot (source, R code)
Partial_correlations_seascorr (source, R code)
SPEI_drought_index (source, R code)

Downloads:

Package source: dendroTools_2.0.0.tar.gz
Windows binaries: r-devel: dendroTools_1.2.16.zip, r-release: dendroTools_1.2.16.zip, r-oldrel: dendroTools_1.2.16.zip
macOS binaries: r-release (arm64): dendroTools_1.2.16.tgz, r-oldrel (arm64): dendroTools_1.2.16.tgz, r-release (x86_64): dendroTools_1.2.16.tgz, r-oldrel (x86_64): dendroTools_1.2.16.tgz
Old sources: dendroTools archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=dendroTools to link to this page.