{
  "_id": "6a10394dacfb0bcc41c9add8",
  "Package": "mbr",
  "Type": "Package",
  "Title": "Mass Balance Reconstruction",
  "Version": "0.0.1.1",
  "Author": "Hung Nguyen",
  "Maintainer": "Hung Nguyen <ntthung@gmail.com>",
  "Description": "Mass-balance-adjusted Regression algorithm for streamflow\nreconstruction at sub-annual resolution (e.g., seasonal or\nmonthly). The algorithm implements a penalty term to minimize\nthe differences between the total sub-annual flows and the\nannual flow. The method is described in Nguyen et al (2020)\n<DOI:10.1002/essoar.10504791.1>.",
  "License": "GPL (>= 2.0)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.1.1",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://github.com/ntthung/mbr",
  "BugReports": "https://github.com/ntthung/mbr/issues",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev libpng-dev libxml2-dev",
  "Repository": "https://critical-infrastructure-systems-lab.r-universe.dev",
  "Date/Publication": "2021-03-10 07:08:39 UTC",
  "RemoteUrl": "https://github.com/critical-infrastructure-systems-lab/mbr",
  "RemoteRef": "HEAD",
  "RemoteSha": "e5850b4229c6c0329de9229d78cb30ec2928a253",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-12 05:38:13 UTC",
    "User": "root"
  },
  "MD5sum": "1b5808faf4a6284ebb80a45ace58e27d",
  "_user": "critical-infrastructure-systems-lab",
  "_type": "src",
  "_file": "mbr_0.0.1.1.tar.gz",
  "_fileid": "de0d6518f6f2e733c91150616af760d6a1703e2167a6df78b9c9ff338ba408b8",
  "_filesize": 158446,
  "_sha256": "de0d6518f6f2e733c91150616af760d6a1703e2167a6df78b9c9ff338ba408b8",
  "_created": "2026-05-12T05:38:13.000Z",
  "_published": "2026-05-22T11:09:01.725Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77367641120,
      "time": 165,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6936529701"
    },
    {
      "job": 77367641231,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6936526941"
    },
    {
      "job": 77367640933,
      "time": 114,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6936516107"
    },
    {
      "job": 77367641126,
      "time": 113,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6936516244"
    },
    {
      "job": 77367640799,
      "time": 205,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936489993"
    },
    {
      "job": 77367640688,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159049223"
    },
    {
      "job": 77367641285,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6936517269"
    },
    {
      "job": 77367641260,
      "time": 114,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6936516571"
    },
    {
      "job": 77367641352,
      "time": 117,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6936517257"
    }
  ],
  "_buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/critical-infrastructure-systems-lab/mbr",
  "_commit": {
    "id": "e5850b4229c6c0329de9229d78cb30ec2928a253",
    "author": "ntthung <ntthung@gmail.com>",
    "committer": "ntthung <ntthung@gmail.com>",
    "message": "Merge branch 'main' of https://github.com/ntthung/mbr into main\n",
    "time": 1615360119
  },
  "_maintainer": {
    "name": "Hung Nguyen",
    "email": "ntthung@gmail.com",
    "login": "ntthung",
    "uuid": 22501446
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "dplR",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "Rfast",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "critical-infrastructure-systems-lab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "ntthung",
      "count": 45,
      "uuid": 22501446
    }
  ],
  "_userbio": {
    "uuid": 133989297,
    "type": "organization",
    "name": "CRITICAL Infrastructure Systems Lab",
    "description": " Connecting climate, water, and energy"
  },
  "_downloads": {
    "count": 210,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mbr"
  },
  "_devurl": "https://github.com/ntthung/mbr",
  "_searchresults": 10,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mbr.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/critical-infrastructure-systems-lab/mbr",
  "_realowner": "critical-infrastructure-systems-lab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2021-02-16"
    }
  ],
  "_exports": [
    "calculate_metrics",
    "cv_mb",
    "KGE",
    "make_Z",
    "mb_reconstruction",
    "nRMSE",
    "NSE",
    "RE"
  ],
  "_datasets": [
    {
      "name": "p1Seasonal",
      "title": "Seasonal streamflow at P.1 station",
      "object": "p1Seasonal",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "season",
        "year",
        "Qa"
      ],
      "rows": 246,
      "table": true,
      "tojson": true
    },
    {
      "name": "pc3seasons",
      "title": "Principal components of tree rings",
      "object": "pc3seasons",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "back_trans",
      "title": "Back-transformation",
      "topics": [
        "back_trans"
      ]
    },
    {
      "page": "calculate_metrics",
      "title": "Reconstruction metrics",
      "topics": [
        "calculate_metrics"
      ]
    },
    {
      "page": "colScale",
      "title": "Scale columns of a matrix",
      "topics": [
        "colScale"
      ]
    },
    {
      "page": "colUnscale",
      "title": "Unscale columns of a matrix",
      "topics": [
        "colUnscale"
      ]
    },
    {
      "page": "cv_mb",
      "title": "Cross-validation",
      "topics": [
        "cv_mb"
      ]
    },
    {
      "page": "KGE",
      "title": "Kling-Gupta Efficiency",
      "topics": [
        "KGE"
      ]
    },
    {
      "page": "lsq_mb",
      "title": "Least square with mass balance penalty",
      "topics": [
        "lsq_mb"
      ]
    },
    {
      "page": "make_Z",
      "title": "Make cross-validation folds.",
      "topics": [
        "make_Z"
      ]
    },
    {
      "page": "mb_fit",
      "title": "Fit parameters with mass balance criterion",
      "topics": [
        "mb_fit"
      ]
    },
    {
      "page": "mb_reconstruction",
      "title": "Mass-balance-adjusted reconstruction",
      "topics": [
        "mb_reconstruction"
      ]
    },
    {
      "page": "nRMSE",
      "title": "Normalized root-mean-square error",
      "topics": [
        "nRMSE"
      ]
    },
    {
      "page": "NSE",
      "title": "Nash-Sutcliffe Efficiency",
      "topics": [
        "NSE"
      ]
    },
    {
      "page": "obj_fun",
      "title": "Objective function from parameters",
      "topics": [
        "obj_fun"
      ]
    },
    {
      "page": "p1Seasonal",
      "title": "Seasonal streamflow at P.1 station",
      "topics": [
        "p1Seasonal"
      ]
    },
    {
      "page": "pc3seasons",
      "title": "Principal components of tree rings",
      "topics": [
        "pc3seasons"
      ]
    },
    {
      "page": "prepend_ones",
      "title": "Prepend a column of ones",
      "topics": [
        "prepend_ones"
      ]
    },
    {
      "page": "RE",
      "title": "Reduction of Error",
      "topics": [
        "RE"
      ]
    },
    {
      "page": "rowScale",
      "title": "Scale rows of a Matrix",
      "topics": [
        "rowScale"
      ]
    },
    {
      "page": "rowUnscale",
      "title": "Unscale rows of a matrix",
      "topics": [
        "rowUnscale"
      ]
    }
  ],
  "_readme": "https://github.com/critical-infrastructure-systems-lab/mbr/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "cli",
    "data.table",
    "digest",
    "dplR",
    "glue",
    "lattice",
    "lifecycle",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "minqa",
    "nlme",
    "nloptr",
    "png",
    "R.methodsS3",
    "R.oo",
    "R.utils",
    "rbibutils",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "reformulas",
    "Rfast",
    "rlang",
    "signal",
    "stringi",
    "stringr",
    "vctrs",
    "XML",
    "zigg"
  ],
  "_vignettes": [
    {
      "source": "Mass-balance-adjusted-regression.Rmd",
      "filename": "Mass-balance-adjusted-regression.html",
      "title": "Streamflow reconstruction with mass balance adjustment",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Reconstruction",
        "Cross-validation",
        "References"
      ],
      "created": "2021-02-10 06:17:09",
      "modified": "2021-02-10 06:17:09",
      "commits": 1
    }
  ],
  "_score": 3.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "mbr",
  "_universes": [
    "critical-infrastructure-systems-lab",
    "ntthung"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.1.1",
      "date": "2026-05-12T05:40:41.000Z",
      "distro": "noble",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "033bf6344152d48296737f87882623d63f19c919ad4d7d6bcdbf04e99b4cb98a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.1.1",
      "date": "2026-05-12T05:40:30.000Z",
      "distro": "noble",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "e565080cc6a52579241d756bda726c8cabf69605a74ac794b54219d2c87ed04a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1.1",
      "date": "2026-05-12T05:39:58.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "977eb012af5c8ff0aff7833ef8d1e8c4ffb213a19ba55bf034284cd14a5ab364",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.1.1",
      "date": "2026-05-12T05:39:54.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "aa9f2c34b8bd409dbf6855064aec85085ac882f2c7f368bd57bd52a606009981",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1.1",
      "date": "2026-05-12T05:39:46.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "44dd1044041d2524f68bb4ed7726729f993b9506107c9d044336fdfdcef6ee5f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1.1",
      "date": "2026-05-12T05:39:34.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "728f06e9b7d97968e9a6ce4955c34b14e48b16056a69d8d143583e42cb1d8fa9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.1.1",
      "date": "2026-05-12T05:39:35.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "6de78535d6ccd19a3102daea563d41b58360405eef8102d90f0460bf175d021e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1.1",
      "date": "2026-05-22T11:08:41.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "b02db169717ab7468a7b8f7e8521b549cfedad8dbc79e0454e599c1e7c01520b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/25715574702"
    }
  ]
}