MyNixOS website logo
Description

Statistical Tools for Climate Change Analysis.

A comprehensive collection of statistical functions for climate change research. Provides tools for temporal trend detection based on the Mann-Kendall (MK) test (Mann 1945 <doi:10.2307/1907187>; Kendall 1975, ISBN:0852641990) and Sen's slope (Sen 1968 <doi:10.2307/2285891>), spatial autocorrelation using Moran's I (Moran 1950 <doi:10.2307/2332142>), extreme value analysis using the Generalised Extreme Value (GEV) distribution and Peaks-Over-Threshold (POT) method (Coles 2001 <doi:10.1007/978-1-4471-3675-0>), standardised drought indices including the Standardised Precipitation Index (SPI; McKee et al. 1993) and the Standardised Precipitation Evapotranspiration Index (SPEI; Vicente-Serrano et al. 2010 <doi:10.1175/2009JCLI2909.1>), and formal detection-attribution methods via optimal fingerprint regression and Empirical Orthogonal Function (EOF) analysis (Allen and Tett 1999 <doi:10.1007/s003820050291>), and apparent temperature via the heat index (Steadman 1979 <doi:10.1175/1520-0450(1979)018%3C0861:TAOSPI%3E2.0.CO;2>). Suitable for both station-level time series and gridded climate fields.

climatestatsr

Statistical Tools for Climate Change Analysis
Author: Sadikul Islam


Overview

climatestatsr is a comprehensive R package providing statistical functions for climate change research. It covers temporal trend analysis, spatial analysis, extreme event assessment, standardised climate indices, and formal detection-attribution methods.

Installation

Install from source:

install.packages("climatestatsr_0.1.0.tar.gz",
                 repos = NULL, type = "source")

Function Families

FamilyKey Functions
Temporalmk_test, sens_slope, change_point_detection, seasonal_decompose_climate, rolling_trend, temporal_homogeneity, trend_significance, autocorrelation_climate
Spatialmorans_i, hot_cold_spots, spatial_interpolate, spatial_trend_field, cluster_climate_zones, spatial_anomaly, elevation_lapse_rate
Extreme Eventsfit_gev, return_period, peaks_over_threshold, heat_wave_detection, cold_spell_detection, drought_spell, extreme_value_index
Climate Indicesspi, spei, pdsi_simple, heat_index, wind_chill, frost_days, growing_degree_days, diurnal_temp_range
Attributiondetection_attribution, fingerprint_analysis, optimal_fingerprint
Utilitiesfill_gaps_climate, homogenize_series, aggregate_climate, anomaly_baseline, standardize_climate, climate_summary

Quick Example

library(climatestatsr)

# Mann-Kendall trend test
set.seed(42)
temp   <- 14 + 0.025 * seq_len(50) + stats::rnorm(50, 0, 0.4)
result <- mk_test(temp)
print(result)

# Sen's warming rate per decade
ss <- sens_slope(y = temp)
cat("Warming:", round(ss$slope_decade, 3), "deg C per decade\n")

# SPI drought index
precip <- stats::rgamma(360, shape = 2, scale = 30)
spi3   <- spi(precip, scale = 3)

# GEV extreme value analysis
ann_max <- rgev_sim(50, mu = 35, sigma = 4, xi = 0.1)
gev     <- fit_gev(ann_max)
rp      <- return_period(gev, c(10, 50, 100))
print(rp)

Citation

citation("climatestatsr")

Islam, S. (2026). climatestatsr: Statistical Tools for Climate Change Analysis. R package version 0.1.0.

License

GPL-3. See LICENSE for details.

Contact

Sadikul Islam (ORCID: 0000-0003-2924-7122)
E-mail: [email protected].

Metadata

Version

0.1.2

License

Unknown

Platforms (79)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    wasip1
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasip1
  • wasm64-wasip1
  • x86_64-cygwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows