{
  "_id": "6a33b7203efcd9bda43aed64",
  "Package": "bdrc",
  "Title": "Bayesian Discharge Rating Curves",
  "Version": "2.0.1",
  "Authors@R": "c(person(\"Birgir\", \"Hrafnkelsson\", email = \"birgirhr@hi.is\", role = c(\"aut\",\"cph\"),comment=c(ORCID=\"0000-0003-1864-9652\")),\nperson(\"Solvi\", \"Rognvaldsson\", email = \"solviro@gmail.com\", role = c(\"aut\"),comment=c(ORCID=\"0000-0002-4376-3361\")),\nperson(given = \"Rafael Daníel\", family = \"Vias\", email = \"raffidv@gmail.com\", role = c(\"aut\", \"cre\"), comment=c(ORCID = \"0009-0007-2601-6800\")),\nperson(\"Axel Orn\", \"Jansson\", email = \"axelorn94@gmail.com\", role = c(\"aut\"))\n)",
  "Maintainer": "Rafael Daníel Vias <raffidv@gmail.com>",
  "Description": "Fits a discharge rating curve based on the power-law and\nthe generalized power-law from data on paired stage and\ndischarge measurements in a given river using a Bayesian\nhierarchical model as described in Hrafnkelsson et al. (2022)\n<doi:10.1002/env.2711>.",
  "LazyData": "true",
  "License": "MIT + file LICENSE",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "URL": "https://sor16.github.io/bdrc/",
  "BugReports": "https://github.com/sor16/bdrc/issues/",
  "Encoding": "UTF-8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-18 09:05:12 UTC",
    "User": "root"
  },
  "Author": "Birgir Hrafnkelsson [aut, cph] (ORCID:\n<https://orcid.org/0000-0003-1864-9652>), Solvi Rognvaldsson\n[aut] (ORCID: <https://orcid.org/0000-0002-4376-3361>), Rafael\nDaníel Vias [aut, cre] (ORCID:\n<https://orcid.org/0009-0007-2601-6800>), Axel Orn Jansson\n[aut]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-02-17 23:10:21 UTC",
  "RemoteUrl": "https://github.com/cran/bdrc",
  "RemoteRef": "HEAD",
  "RemoteSha": "b2921b1f628522727a95cebc4c1c172e72d4e390",
  "MD5sum": "e8d3d612d3ba7b8bb3d78cf9b8ee92bd",
  "_user": "cran",
  "_type": "src",
  "_file": "bdrc_2.0.1.tar.gz",
  "_fileid": "c93e9aac637dc174dbb8f65498508e29a27905e138286ab5dc98a954bc4f4223",
  "_filesize": 5847522,
  "_sha256": "c93e9aac637dc174dbb8f65498508e29a27905e138286ab5dc98a954bc4f4223",
  "_created": "2026-06-18T09:05:12.000Z",
  "_published": "2026-06-18T09:15:12.882Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82094009882,
      "time": 385,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7719051560"
    },
    {
      "job": 82094009805,
      "time": 468,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7719082565"
    },
    {
      "job": 82094009768,
      "time": 363,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7719044031"
    },
    {
      "job": 82094009878,
      "time": 513,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7719099658"
    },
    {
      "job": 82088015535,
      "time": 1992,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7718905956"
    },
    {
      "job": 82094009769,
      "time": 154,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7718967066"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27747080737",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/bdrc",
  "_commit": {
    "id": "b2921b1f628522727a95cebc4c1c172e72d4e390",
    "author": "Rafael Daníel Vias <raffidv@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.0.1\n",
    "time": 1771369821
  },
  "_maintainer": {
    "name": "Rafael Daníel Vias",
    "email": "raffidv@gmail.com",
    "login": "rafaelvias",
    "description": "",
    "uuid": 78622738
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "version": ">= 0.2.35",
      "role": "LinkingTo"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "2.0.0",
      "date": "2026-02-14"
    },
    {
      "name": "2.0.1",
      "date": "2026-02-17"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "rafaelvias",
      "count": 2,
      "uuid": 78622738
    },
    {
      "user": "sor16",
      "count": 2,
      "uuid": 10403415
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 609,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 360,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bdrc"
  },
  "_devurl": "https://github.com/sor16/bdrc",
  "_pkgdown": "https://sor16.github.io/bdrc/",
  "_searchresults": 12,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bdrc.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/sor16/bdrc",
  "_realowner": "sor16",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2021-07-28"
    },
    {
      "version": "1.1.0",
      "date": "2023-03-19"
    },
    {
      "version": "2.0.0",
      "date": "2026-02-16"
    },
    {
      "version": "2.0.1",
      "date": "2026-02-18"
    }
  ],
  "_exports": [
    "gather_draws",
    "get_report",
    "get_report_pages",
    "gplm",
    "gplm0",
    "plm",
    "plm0",
    "spread_draws",
    "tournament"
  ],
  "_datasets": [
    {
      "name": "jokdal",
      "title": "Jokulsa a Dal gauging station in Iceland",
      "object": "jokdal",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 86,
      "table": true,
      "tojson": true
    },
    {
      "name": "jokfjoll",
      "title": "Jokulsa a Fjollum gauging station in Iceland",
      "object": "jokfjoll",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 76,
      "table": true,
      "tojson": true
    },
    {
      "name": "kallstorp",
      "title": "Kallstorp gauging station in Sweden",
      "object": "kallstorp",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 52,
      "table": true,
      "tojson": true
    },
    {
      "name": "krokfors",
      "title": "Krokfors gauging station in Sweden",
      "object": "krokfors",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 27,
      "table": true,
      "tojson": true
    },
    {
      "name": "melby",
      "title": "Melby gauging station in Sweden",
      "object": "melby",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 33,
      "table": true,
      "tojson": true
    },
    {
      "name": "nordura",
      "title": "Nordura gauging station in Iceland",
      "object": "nordura",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 35,
      "table": true,
      "tojson": true
    },
    {
      "name": "norn",
      "title": "Norn gauging station in Sweden",
      "object": "norn",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 45,
      "table": true,
      "tojson": true
    },
    {
      "name": "skjalf",
      "title": "Skjalfandafljot gauging station in Iceland",
      "object": "skjalf",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 56,
      "table": true,
      "tojson": true
    },
    {
      "name": "skogsliden",
      "title": "Skogsliden gauging station in Sweden",
      "object": "skogsliden",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 26,
      "table": true,
      "tojson": true
    },
    {
      "name": "spanga",
      "title": "Spanga gauging station in Sweden",
      "object": "spanga",
      "class": [
        "data.frame"
      ],
      "fields": [
        "W",
        "Q"
      ],
      "rows": 34,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "autoplot.plm0",
      "title": "Autoplot method for discharge rating curves",
      "topics": [
        "autoplot.gplm",
        "autoplot.gplm0",
        "autoplot.plm",
        "autoplot.plm0"
      ]
    },
    {
      "page": "autoplot.tournament",
      "title": "Autoplot method for discharge rating curve tournament",
      "topics": [
        "autoplot.tournament"
      ]
    },
    {
      "page": "gather_draws",
      "title": "Gather MCMC chain draws to data.frame on a long format",
      "topics": [
        "gather_draws"
      ]
    },
    {
      "page": "get_report",
      "title": "Report for a discharge rating curve or tournament",
      "topics": [
        "get_report",
        "get_report.gplm",
        "get_report.gplm0",
        "get_report.plm",
        "get_report.plm0",
        "get_report.tournament"
      ]
    },
    {
      "page": "get_report_pages",
      "title": "Report pages for a discharge rating curve or tournament",
      "topics": [
        "get_report_pages",
        "get_report_pages.gplm",
        "get_report_pages.gplm0",
        "get_report_pages.plm",
        "get_report_pages.plm0",
        "get_report_pages.tournament"
      ]
    },
    {
      "page": "gplm",
      "title": "Generalized power-law model with variance that varies with stage.",
      "topics": [
        "gplm"
      ]
    },
    {
      "page": "gplm0",
      "title": "Generalized power-law model with a constant variance",
      "topics": [
        "gplm0"
      ]
    },
    {
      "page": "jokdal",
      "title": "Jokulsa a Dal gauging station in Iceland",
      "topics": [
        "jokdal"
      ]
    },
    {
      "page": "jokfjoll",
      "title": "Jokulsa a Fjollum gauging station in Iceland",
      "topics": [
        "jokfjoll"
      ]
    },
    {
      "page": "kallstorp",
      "title": "Kallstorp gauging station in Sweden",
      "topics": [
        "kallstorp"
      ]
    },
    {
      "page": "krokfors",
      "title": "Krokfors gauging station in Sweden",
      "topics": [
        "krokfors"
      ]
    },
    {
      "page": "melby",
      "title": "Melby gauging station in Sweden",
      "topics": [
        "melby"
      ]
    },
    {
      "page": "nordura",
      "title": "Nordura gauging station in Iceland",
      "topics": [
        "nordura"
      ]
    },
    {
      "page": "norn",
      "title": "Norn gauging station in Sweden",
      "topics": [
        "norn"
      ]
    },
    {
      "page": "plm",
      "title": "Power-law model with variance that varies with stage.",
      "topics": [
        "plm"
      ]
    },
    {
      "page": "plm0",
      "title": "Power-law model with a constant variance",
      "topics": [
        "plm0"
      ]
    },
    {
      "page": "plot.plm0",
      "title": "Plot method for discharge rating curves",
      "topics": [
        "plot.gplm",
        "plot.gplm0",
        "plot.plm",
        "plot.plm0"
      ]
    },
    {
      "page": "plot.tournament",
      "title": "Plot method for a discharge rating curve tournament",
      "topics": [
        "plot.tournament"
      ]
    },
    {
      "page": "predict.plm0",
      "title": "Predict method for discharge rating curves",
      "topics": [
        "predict.gplm",
        "predict.gplm0",
        "predict.plm",
        "predict.plm0"
      ]
    },
    {
      "page": "print.plm0",
      "title": "Print method for discharge rating curves",
      "topics": [
        "print.gplm",
        "print.gplm0",
        "print.plm",
        "print.plm0"
      ]
    },
    {
      "page": "print.tournament",
      "title": "Print method for discharge rating curve tournament",
      "topics": [
        "print.tournament"
      ]
    },
    {
      "page": "skjalf",
      "title": "Skjalfandafljot gauging station in Iceland",
      "topics": [
        "skjalf"
      ]
    },
    {
      "page": "skogsliden",
      "title": "Skogsliden gauging station in Sweden",
      "topics": [
        "skogsliden"
      ]
    },
    {
      "page": "spanga",
      "title": "Spanga gauging station in Sweden",
      "topics": [
        "spanga"
      ]
    },
    {
      "page": "spread_draws",
      "title": "Spread MCMC chain draws to data.frame on a wide format",
      "topics": [
        "spread_draws"
      ]
    },
    {
      "page": "summary.plm0",
      "title": "Summary method for discharge rating curves",
      "topics": [
        "summary.gplm",
        "summary.gplm0",
        "summary.plm",
        "summary.plm0"
      ]
    },
    {
      "page": "summary.tournament",
      "title": "Summary method for a discharge rating curve tournament",
      "topics": [
        "summary.tournament"
      ]
    },
    {
      "page": "tournament",
      "title": "Tournament - Model comparison",
      "topics": [
        "tournament"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/bdrc/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/bdrc/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "background.Rmd",
      "filename": "background.html",
      "title": "Background",
      "author": "Birgir Hrafnkelsson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Bayesian Generalized Power-Law Rating Curves",
        "References"
      ],
      "created": "2021-07-28 11:10:04",
      "modified": "2026-02-14 14:40:34",
      "commits": 3
    },
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction",
      "author": "Solvi Rognvaldsson, Rafael Daniel Vias, Birgir Hrafnkelsson and Axel Orn Jansson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Fitting a discharge rating curve",
        "Visualizing posterior distributions of different parameters",
        "Assessing model fit and convergence",
        "Customizing the models",
        "Prediction for an equally spaced grid of water elevations",
        "References"
      ],
      "created": "2021-07-28 11:10:04",
      "modified": "2026-02-14 14:40:34",
      "commits": 3
    },
    {
      "source": "tournament.Rmd",
      "filename": "tournament.html",
      "title": "Tournament - Model comparison",
      "author": "Solvi Rognvaldsson, Rafael Daniel Vias, Birgir Hrafnkelsson and Axel Orn Jansson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The tournament method",
        "Introducing the Tournament Function",
        "Running a tournament",
        "Visualizing the model comparisons",
        "1. Tournament results diagram:",
        "2. Log-likelihood comparison:",
        "3. Rating curve comparison:",
        "4. Residual plot comparison:",
        "5. Model Component Comparisons:",
        "Power-law exponent comparison:",
        "Log-error standard deviation comparison:",
        "6. Winning model panel:",
        "Customizing tournaments",
        "1. Fixing the c parameters:",
        "2. Adjusting the winning criteria:",
        "3. Changing the model comparison method:",
        "References"
      ],
      "created": "2021-07-28 11:10:04",
      "modified": "2026-02-14 14:40:34",
      "commits": 3
    }
  ],
  "_score": 3.5563025007672873,
  "_indexed": false,
  "_nocasepkg": "bdrc",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://sor16.r-universe.dev/bdrc",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.1",
      "date": "2026-06-18T09:08:38.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "b2921b1f628522727a95cebc4c1c172e72d4e390",
      "fileid": "d140c7c478c45ba6492417aba8566267dcbd5de711ad02364ffc4246f2f717ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27747080737"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.1",
      "date": "2026-06-18T09:07:56.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "b2921b1f628522727a95cebc4c1c172e72d4e390",
      "fileid": "ea478b548af08322044f1b8d19024a66fadd4878a6d81737e2c6eea46447eb64",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27747080737"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.1",
      "date": "2026-06-18T09:08:32.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "b2921b1f628522727a95cebc4c1c172e72d4e390",
      "fileid": "ed324a5332e0c167ad8a3980b6f88ef1a0b045fd49ec7f0f82d0fb43c361f802",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27747080737"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.1",
      "date": "2026-06-18T09:08:18.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "b2921b1f628522727a95cebc4c1c172e72d4e390",
      "fileid": "3c38d80dfa80a19783ca8925add40570d641229d5fc9a30d2782893e0bbbaebe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27747080737"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.1",
      "date": "2026-06-18T09:08:23.000Z",
      "arch": "emscripten",
      "commit": "b2921b1f628522727a95cebc4c1c172e72d4e390",
      "fileid": "d521f0e6855320ea9ccc3fd9cc5acd4dd9b8d42c34009a4be52c0a9044e34abf",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27747080737"
    }
  ]
}