{
  "_id": "6addeba9da94d7bb235a5a30",
  "Package": "APRScenario",
  "Title": "Structural Scenario Analysis for Bayesian Structural Vector\nAutoregression Models",
  "Version": "0.0.4.2",
  "Author": "Giovanni Lombardo [aut, cre], Tito Quadri [aut]",
  "Maintainer": "Giovanni Lombardo <giannilmbd@gmail.com>",
  "Authors@R": "c(\nperson(\"Giovanni\", \"Lombardo\", email = \"giannilmbd@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Tito\", \"Quadri\", email = \"quadritito@gmail.com\", role = \"aut\"))",
  "Description": "Implements the scenario analysis proposed by Antolin-Diaz,\nPetrella and Rubio-Ramirez (2021) \"Structural scenario analysis\nwith SVARs\" <doi:10.1016/j.jmoneco.2020.06.001>.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/giannilmbd/APRScenario",
  "BugReports": "https://github.com/giannilmbd/APRScenario/issues",
  "Encoding": "UTF-8",
  "SystemRequirements": "LAPACK",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://giannilmbd.r-universe.dev",
  "Date/Publication": "2026-08-26 08:08:52 UTC",
  "RemoteUrl": "https://github.com/giannilmbd/aprscenario",
  "RemoteRef": "HEAD",
  "RemoteSha": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-25 11:37:26 UTC",
    "User": "root"
  },
  "_user": "giannilmbd",
  "_type": "src",
  "_file": "APRScenario_0.0.4.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/27bde25464145ff5cdc4aed6695030f7552108b7dbffc8936bf8f63d9037468f",
  "_filesize": 201104,
  "_sha256": "27bde25464145ff5cdc4aed6695030f7552108b7dbffc8936bf8f63d9037468f",
  "_expires": "2027-02-02T11:44:39.000Z",
  "_created": "2026-10-25T11:37:26.000Z",
  "_published": "2026-10-25T11:44:41.554Z",
  "_upstream": "https://github.com/giannilmbd/aprscenario",
  "_status": "success",
  "_maintainer": {
    "name": "Giovanni Lombardo",
    "email": "giannilmbd@gmail.com",
    "login": "giannilmbd",
    "description": "",
    "uuid": 30896367
  },
  "_jobs": [
    {
      "job": 121157822813,
      "time": 140,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12597384417"
    },
    {
      "job": 121157822850,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12597069924"
    },
    {
      "job": 121157822825,
      "time": 142,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12597504083"
    },
    {
      "job": 121157822853,
      "time": 162,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12597324482"
    },
    {
      "job": 121157822816,
      "time": 217,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12597069960"
    },
    {
      "job": 121157822792,
      "time": 263,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12596753738"
    },
    {
      "job": 121157822827,
      "time": 169,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12597219657"
    },
    {
      "job": 121157822810,
      "time": 375,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12597524528"
    },
    {
      "job": 121156906588,
      "time": 265,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12596733389"
    },
    {
      "job": 121157822774,
      "time": 140,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12597014917"
    },
    {
      "job": 121157822858,
      "time": 379,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12597910126"
    },
    {
      "job": 121157822994,
      "time": 149,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12596808398"
    },
    {
      "job": 121157822942,
      "time": 140,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12596498989"
    },
    {
      "job": 121157822941,
      "time": 380,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12597750409"
    },
    {
      "job": 121157822895,
      "time": 141,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12597104834"
    }
  ],
  "_buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705",
  "_commit": {
    "id": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
    "author": "giannilmbd <giannilmbd@gmail.com>",
    "committer": "giannilmbd <giannilmbd@gmail.com>",
    "message": "STATUS: record the CRAN submission; store the draft reply to PhoenixEmik\n\nThe draft reply had only ever existed in a chat transcript while this file\nclaimed to contain it. It is now actually here.\n\nCo-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>\nClaude-Session: https://claude.ai/code/session_01ELKa1Txnsae8pbv2UFUHCe\n",
    "time": 1787731732
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "RcppProgress",
      "role": "LinkingTo"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "abind",
      "role": "Imports"
    },
    {
      "package": "psych",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.12",
      "role": "Imports"
    },
    {
      "package": "RcppProgress",
      "role": "Imports"
    },
    {
      "package": "bsvars",
      "role": "Suggests"
    },
    {
      "package": "bsvarSIGNs",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "ggfortify",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "zoo",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "giannilmbd",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-52",
      "n": 1
    },
    {
      "week": "2026-29",
      "n": 5
    },
    {
      "week": "2026-30",
      "n": 1
    },
    {
      "week": "2026-34",
      "n": 3
    },
    {
      "week": "2026-35",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "giannilmbd",
      "count": 15,
      "uuid": 30896367
    },
    {
      "user": "phoenixemik",
      "count": 2,
      "uuid": 10204811
    }
  ],
  "_userbio": {
    "uuid": 30896367,
    "type": "user",
    "name": "gianni lombardo",
    "followers": 4
  },
  "_downloads": {
    "count": 334,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/APRScenario"
  },
  "_devurl": "https://github.com/giannilmbd/aprscenario",
  "_searchresults": 20,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/APRScenario.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/giannilmbd/aprscenario",
  "_realowner": "giannilmbd",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.3.0",
      "date": "2025-07-24"
    },
    {
      "version": "0.0.3.1",
      "date": "2025-12-21"
    },
    {
      "version": "0.0.4.0",
      "date": "2026-07-15"
    },
    {
      "version": "0.0.4.2",
      "date": "2026-08-26"
    }
  ],
  "_exports": [
    "big_b_and_M",
    "forc_h",
    "full_scenarios_core",
    "gen_mats",
    "KL",
    "mat_forc",
    "plot_bvars",
    "plot_cond_forc",
    "plot_cond_histo",
    "scenarios",
    "SimScen",
    "simulate_conditional_forecasts"
  ],
  "_datasets": [
    {
      "name": "NKdata",
      "title": "Example Dataset NKdata",
      "object": "NKdata",
      "file": "NKdata.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "GDP.E",
        "pi.PCE.core",
        "i"
      ],
      "rows": 244,
      "table": true,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "big_b_and_M",
      "title": "big_b_and_M This function returns the extended b and M matrices as in APR",
      "topics": [
        "big_b_and_M"
      ]
    },
    {
      "page": "forc_h",
      "title": "forc_h function",
      "topics": [
        "forc_h"
      ]
    },
    {
      "page": "full_scenarios_core",
      "title": "Exported version of full_scenarios_core",
      "topics": [
        "full_scenarios_core"
      ]
    },
    {
      "page": "gen_mats",
      "title": "gen_mats function",
      "topics": [
        "gen_mats"
      ]
    },
    {
      "page": "KL",
      "title": "KL function APR suggest this measure to assess the \"plausibility\" of the conditional forecast. It is based on the Kullback-Leibler measure of distance between the unconditional forecast and the conditional/scenario forecast.",
      "topics": [
        "KL"
      ]
    },
    {
      "page": "mat_forc",
      "title": "mat_forc function ############################################################################## NB: HERE WE USE Antolin-Diaz et al notation # B is reduced form; # A is structural; # d is intercepts # M is reduced so that E(u_u')=Sigma=(A_0_A_0')^(-1) and M_0=A_0^(-1)*Q # Note that the code returns conflicting notation: # B=>A_0^(-1)*Q and # A=>B # ############################################################################## The recursions (Antolin-Diaz et al. 2021, Appendix A) are implemented once, in the internal single-draw kernel 'mat_forc_draw()'; 'mat_forc()', 'big_b_and_M()' and 'forc_h()' are thin consumers of that kernel.",
      "topics": [
        "mat_forc"
      ]
    },
    {
      "page": "NKdata",
      "title": "Example Dataset NKdata",
      "topics": [
        "NKdata"
      ]
    },
    {
      "page": "plot_bvars",
      "title": "plot_bvars: This function plots the IRFs generated with the BVAR",
      "topics": [
        "plot_bvars"
      ]
    },
    {
      "page": "plot_cond_forc",
      "title": "plot_cond_forc function; Data should conatain the variable \"variable\", the \"hor\" horizon and a \"history\"",
      "topics": [
        "plot_cond_forc"
      ]
    },
    {
      "page": "plot_cond_histo",
      "title": "plot_cond_histo function",
      "topics": [
        "plot_cond_histo"
      ]
    },
    {
      "page": "scenarios",
      "title": "scenarios function (fully optimized with Rcpp) This function computes the mean and covariances to draw from the conditional forecast The actual draw is done in the simscen function",
      "topics": [
        "scenarios"
      ]
    },
    {
      "page": "SimScen",
      "title": "simscen function This function takes the mean and covariance of the conditional forecast to draw from the conditional forecast distribution The shock uncertainty is included in the simulation by default, but can be turned off.",
      "topics": [
        "SimScen"
      ]
    },
    {
      "page": "simulate_conditional_forecasts",
      "title": "Simulate paths from conditional forecast distributions",
      "topics": [
        "simulate_conditional_forecasts"
      ]
    }
  ],
  "_readme": "https://github.com/giannilmbd/aprscenario/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "GPArotation",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lubridate",
    "magrittr",
    "MASS",
    "mnormt",
    "nlme",
    "pillar",
    "pkgconfig",
    "psych",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppProgress",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "APRScenario.Rmd",
      "filename": "APRScenario.html",
      "title": "APRScenario vignette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Scenario analysis",
        "Create Forecast Functions",
        "Conditional Forecast",
        "Packages",
        "Getting all the necessary matrices"
      ],
      "created": "2025-07-10 08:19:59",
      "modified": "2026-08-22 10:28:56",
      "commits": 5
    }
  ],
  "_score": 5.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "aprscenario",
  "_universes": [
    "giannilmbd"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:39:42.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/c6b1e7cfbf1c6e5225536c70a81a454dc5c98d40d622130287ed1e52c0df1128",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:40:01.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/8842918b60da2c36d678d0e1407875319f2c0af4ccd5e8241813d55e9d12c1d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:39:48.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/1f09487da7130b5b5b693ff03af91d4c663abd0a287031075f66f6553817e7ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:40:05.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/02049f32ac793d653faec3d1ce6b482010e4fb531cc9dcfb8a9781f0d3c1c669",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:40:08.000Z",
      "arch": "aarch64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/d75389890b1832c414d7f1bb20cb26790351d90ec0d89870de227dd2c2924074",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:41:05.000Z",
      "arch": "x86_64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/e97106c726e7fc841670f5c78cf85b8fcbfa9238756dcfbe07512e984f907301",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:39:52.000Z",
      "arch": "aarch64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/05bafe2e8d31d0c30f6c6bd3b7488f1443b677986cadaf5c41d62a08b692c159",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:41:53.000Z",
      "arch": "x86_64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/f1015adc6a44291c955e5fd249b8120c26315f51f197313858cbdd4886eb7c0a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:40:05.000Z",
      "arch": "emscripten",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/4bef40af276565dae0e98b8e38563dacf84eae822e0379f0c31c86334ced8eda",
      "status": "success",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:42:37.000Z",
      "arch": "aarch64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/01e714f805d65b284fde8c5b77a2c6d8b2858aaa715a55f4343589ef6dc1e128",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:38:49.000Z",
      "arch": "x86_64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/77d39684d28f34a625615f496054405d947b1d2bd0881688ca3bffa972c66f4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:39:05.000Z",
      "arch": "x86_64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/872205161d85cb78109aa8b8a99b71e725026c53d648ba0986d8959b515d1bd1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:42:55.000Z",
      "arch": "aarch64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/4cad636866f5540ed477db99e003df7a27abae57e349dcf14eff6903ce347c1a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4.2",
      "date": "2026-10-25T11:39:10.000Z",
      "arch": "x86_64",
      "commit": "07e1554cf8bbbe7e720884979d2f9c6e7eef0c3b",
      "fileid": "https://r2.ropensci.org/a82754d30d7f3368c21f79ec5f87fffe0ed9717ae0ad3fd8dec4ca65bb1e56eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/40189354705"
    }
  ]
}