Hidden Markov Modelling of Hydrological State Change
Overview
Identifies regime changes in streamflow runoff not explained by variations in precipitation. The package builds a flexible set of Hidden Markov Models of annual, seasonal or monthly streamflow runoff with precipitation as a predictor. Suites of models can be built for a single site, ranging from one to three states and each with differing combinations of error models and auto-correlation terms. The most parsimonious model is easily identified by AIC, and useful for understanding catchment drought non-recovery: Peterson TJ, Saft M, Peel MC & John A (2021) doi:10.1126/science.abd5085.
- Initial CRAN submission in the making! 🎉
- Main Functions:
build()build.all()fit.hydroState()setInitialYear()plot.hydroState()get.AIC()- Vignette:
- Getting Started
- Adjust default state model
- Seasonal and monthly models
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 13 (1 internal)includes a package overview page
- Examples that run
- 91%10 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 85%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/peterson-tim-j/hydrostate on 2026-10-21.
GitHub Pages site last deployed 2025-11-07 · The repository has a site deploy workflow
pkgdown site last built 2025-11-07
Dependencies
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- 0.2.0.0Latest2025-09-22 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-09-22
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 328 KB / 12 files
- Download size
- 2.5 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("hydroState")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1126/science.abd5085.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.