Skip to content

Bayesian Discharge Rating Curves

0packages depend
4Kdownloads / year
97.8%test coverage
13/13flavors OK

Overview

About

Fits a discharge rating curve based on the power-law and the generalized power-law from data on paired stage and discharge measurements in a given river using a Bayesian hierarchical model as described in Hrafnkelsson et al. (2022) doi:10.1002/env.2711.

Changes in 2.0.1
  • Fixed phantom observation variance bug in gplm0 and gplm: the phantom observation that centers the GP used zero variance, acting as an infinitely precise constraint that collapsed the posterior of b. Fixed by using the prior variance sig_b^2.
  • Fixed eta posterior scaling bug in plm and gplm: the standardized eta coefficients were not scaled by sigma_eta before applying the basis transformation P, resulting in incorrect B-spline coefficient posteriors.
  • Fixed sigma_beta back-transform bug in gplm0: stored values were sqrt(sigma_beta) instead of sigma_beta due to an incorrect sqrt(exp()) transform. This affected posterior summaries and plots for the sigma_beta parameter in the gplm0 model.
  • Updated reference in DESCRIPTION from arXiv preprint to the published Environmetrics paper (doi:10.1002/env.2711).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 17.8 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.0.1
READMEYes · 254 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 2.0.1Citation fileNoWebsiteYes · pkgdown
Help pages
32 (4 internal)
Examples that run
0%16 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
91%
Return-value docs
100%
Help pages citing references
25%

Downloads

4K
CRAN downloads in the past year
Rank #8,117 · ~11/day · ~337/mo
Daily download trend is not available in this view yet.
43930 days
1.1K90 days
4K1 year
Compare downloads with other packages →
Also on412 r2u54 autocran794 conda_forge113 c2d4u

Repository

15Stars
2Forks
4Open issues
0Open PRs
3Releases
870Commits
10Commit identities
bayesian-inferencecran-rpower-lawrr-packagerivers
870 commits · Last activity 2026-02-17 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
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

2025-08-26 · 132026-08-04 · 15
PracticesBeta

10 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/sor16/bdrc on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-02-14 · The repository has a site deploy workflow

pkgdown site last built 2026-02-13, before release 2.0.1 (2026-02-17)

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing bdrc adds 20 packages (9 with compiled code, 17 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, isoband 1.5 MB.

Depends (1)
R >= 3.5.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 2.0.0 (2026) · added in 2.0.0
Author, Copyright holder

Previously maintained by Solvi Rognvaldsson (1.0.0 to 1.1.0).

Listed in earlier versions (1)
Rafael Vias
no longer listed · 1.0.0 to 1.1.0
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.1Latest
    record
    2026-02-18 · current release · diff ↗
  • 2.0.0
    record
    2026-02-14 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.0
    record
    2023-03-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.0
    record
    2021-07-28
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-07-28
Total releases
4 / 5 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
7.0 KB / 10 files
Download size
3.1 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bdrc")
Vias, R. D., Hrafnkelsson, B., Jansson, A. O., & Rognvaldsson, S. (2026). bdrc: Bayesian Discharge Rating Curves (Version 2.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.bdrc

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bdrc version 2.0.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy