{
  "_id": "6a100efeacfb0bcc41c81573",
  "Package": "APRScenario",
  "Title": "Structural Scenario Analysis for Bayesian Structural Vector\nAutoregression Models",
  "Version": "0.0.3.1",
  "Author": "Giovanni Lombardo [aut, cre]",
  "Maintainer": "Giovanni Lombardo <giannilmbd@gmail.com>",
  "Authors@R": "person(\"Giovanni\", \"Lombardo\", email = \"giannilmbd@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"\"))",
  "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)",
  "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": "2025-12-23 17:27:14 UTC",
  "RemoteUrl": "https://github.com/giannilmbd/aprscenario",
  "RemoteRef": "HEAD",
  "RemoteSha": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-22 08:01:24 UTC",
    "User": "root"
  },
  "MD5sum": "3a3ad8fef4e726516dcda149c8b12d60",
  "_user": "giannilmbd",
  "_type": "src",
  "_file": "APRScenario_0.0.3.1.tar.gz",
  "_fileid": "dd11cd86bfe576fef1caff38bc8066294ebc99b13667b0f2f44c22fe2317f19d",
  "_filesize": 1056482,
  "_sha256": "dd11cd86bfe576fef1caff38bc8066294ebc99b13667b0f2f44c22fe2317f19d",
  "_created": "2026-05-22T08:01:24.000Z",
  "_published": "2026-05-22T08:08:30.175Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77340217130,
      "time": 191,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7155734075"
    },
    {
      "job": 77340217073,
      "time": 185,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7155731983"
    },
    {
      "job": 77340217292,
      "time": 217,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155741660"
    },
    {
      "job": 77340217064,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155729685"
    },
    {
      "job": 77340217140,
      "time": 175,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7155720773"
    },
    {
      "job": 77340217133,
      "time": 244,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7155745326"
    },
    {
      "job": 77340217083,
      "time": 155,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155717063"
    },
    {
      "job": 77340217111,
      "time": 370,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155774033"
    },
    {
      "job": 77339666097,
      "time": 232,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155677584"
    },
    {
      "job": 77340217103,
      "time": 144,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155719874"
    },
    {
      "job": 77340217068,
      "time": 141,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7155719312"
    },
    {
      "job": 77340217087,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7155719383"
    },
    {
      "job": 77340217067,
      "time": 166,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155726668"
    }
  ],
  "_buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/giannilmbd/aprscenario",
  "_commit": {
    "id": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
    "author": "giannilmbd <giannilmbd@gmail.com>",
    "committer": "giannilmbd <giannilmbd@gmail.com>",
    "message": "version 0.3.1\n",
    "time": 1766510834
  },
  "_maintainer": {
    "name": "Giovanni Lombardo",
    "email": "giannilmbd@gmail.com",
    "login": "giannilmbd",
    "description": "",
    "uuid": 30896367
  },
  "_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-28",
      "n": 1
    },
    {
      "week": "2025-30",
      "n": 1
    },
    {
      "week": "2025-52",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "giannilmbd",
      "count": 3,
      "uuid": 30896367
    }
  ],
  "_userbio": {
    "uuid": 30896367,
    "type": "user",
    "name": "gianni lombardo"
  },
  "_downloads": {
    "count": 526,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/APRScenario"
  },
  "_devurl": "https://github.com/giannilmbd/aprscenario",
  "_searchresults": 10,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/APRScenario.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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"
    }
  ],
  "_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 # ##############################################################################",
      "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.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"
    }
  ],
  "_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": "2025-12-23 17:27:14",
      "commits": 3
    }
  ],
  "_score": 4.778151250383644,
  "_indexed": true,
  "_nocasepkg": "aprscenario",
  "_universes": [
    "giannilmbd"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:04:22.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "b45bcf24ee17585d522cf2ea23c7921470d585c7e1f50f0721b8bbdb9b0f758e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:04:11.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "034b2c311f8b1eedccded332c3fc63f41e6e49d13016d4a85ea66de5cfd32637",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:04:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "28ecd3f7de9886232de26daccef38c5bd222cafae96bc722f38c19cdb88d2ce6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:04:09.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "df421d22510c02dfc71e1e9bb96076bb42522b8bd8fb72fd18cacee9781a9e6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:03:51.000Z",
      "arch": "aarch64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "6ced2abfbd5ca38cf2560e102c3ca7586e37263340ce669b894c861080530431",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:04:48.000Z",
      "arch": "x86_64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "053af0766006b38e489d5a39ba72f3e24286ca438d611da2836c60793f7e05e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:03:36.000Z",
      "arch": "aarch64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "ab6c2780927bd736deda82264d5737270ea96d46c5a2f0324b92281951647d34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:05:26.000Z",
      "arch": "x86_64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "6dc593892d66c3b86b2f21cdacf4146674e653a1b52627a2211fd88b6e2870bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:04:08.000Z",
      "arch": "emscripten",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "c724e479eca94b5e9d2a8d576ebdf0b12375324bcea47b8e94f71d4b3675a3fa",
      "status": "success",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:03:03.000Z",
      "arch": "x86_64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "36592b6cb30f49d3189349f7b9f2d9a097a9da879cf81c164a96649fc977bc35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:03:05.000Z",
      "arch": "x86_64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "0bdc64d7d611dcac94b0d70526610721d4669ece7a3ae4b3b0fb2ee23d0a4ab4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.3.1",
      "date": "2026-05-22T08:03:17.000Z",
      "arch": "x86_64",
      "commit": "35187cc7645b42b10ea609b5ae4777b2107b79eb",
      "fileid": "756a2f746e5554ae11e2f50974b2333e135846b4046caa716b674e7418ed7de9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giannilmbd/actions/runs/26275802392"
    }
  ]
}