{
  "_id": "6ad5c5d14a34890ab49389a5",
  "Package": "ForeComp",
  "Type": "Package",
  "Title": "Size-Power Tradeoff Visualization for Equal Predictive Ability\nof Two Forecasts",
  "Version": "1.0.0",
  "Author": "Nathan Schor [aut], Minchul Shin [aut, cre, cph]",
  "Maintainer": "Minchul Shin <visiblehand@gmail.com>",
  "Authors@R": "c(\nperson(\"Nathan\", \"Schor\", role = \"aut\"),\nperson(\"Minchul\", \"Shin\",\nemail = \"visiblehand@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\"))\n)",
  "Description": "Offers tools for visualizing and analyzing size and power\nproperties of tests for equal predictive accuracy, including\nDiebold-Mariano and related procedures. Provides multiple\nDiebold-Mariano test implementations based on fixed-smoothing\napproaches, including fixed-b methods such as Kiefer and\nVogelsang (2005) <doi:10.1017/S0266466605050565>, and\napplications to tests for equal predictive accuracy as in\nCoroneo and Iacone (2020) <doi:10.1002/jae.2756>, alongside\nconventional large-sample approximations. HAR inference\ninvolves nonparametric estimation of the long-run variance, and\na key tuning parameter (the truncation parameter) trades off\nsize and power. Lazarus, Lewis, and Stock (2021)\n<doi:10.3982/ECTA15404> theoretically characterize the\nsize-power frontier for the Gaussian multivariate location\nmodel. 'ForeComp' computes and visualizes the finite-sample\nsize-power frontier of the Diebold-Mariano test based on\nfixed-b asymptotics together with the Bartlett kernel. To\ncompute finite-sample size and power, it fits a best\napproximating ARMA process to the input data and reports how\nthe truncation parameter performs and how robust testing\noutcomes are to its choice.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "URL": "https://github.com/mcmcs/ForeComp",
  "BugReports": "https://github.com/mcmcs/ForeComp/issues",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.3",
  "Repository": "https://mcmcs.r-universe.dev",
  "Date/Publication": "2026-02-21 01:21:40 UTC",
  "RemoteUrl": "https://github.com/mcmcs/forecomp",
  "RemoteRef": "HEAD",
  "RemoteSha": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-19 07:01:07 UTC",
    "User": "root"
  },
  "_user": "mcmcs",
  "_type": "src",
  "_file": "ForeComp_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/56f0a62e001a2808386e1aed7becbf01066031512c3ba4f09eeaf5b8a235b6a8",
  "_filesize": 339835,
  "_sha256": "56f0a62e001a2808386e1aed7becbf01066031512c3ba4f09eeaf5b8a235b6a8",
  "_expires": "2027-01-27T07:25:02.000Z",
  "_created": "2026-10-19T07:01:07.000Z",
  "_published": "2026-10-19T07:25:04.786Z",
  "_buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117931451751,
      "time": 113,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12167794579"
    },
    {
      "job": 117931451849,
      "time": 152,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168119746"
    },
    {
      "job": 117931451923,
      "time": 189,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12169810752"
    },
    {
      "job": 117931451870,
      "time": 230,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169120820"
    },
    {
      "job": 117930477813,
      "time": 179,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168945589"
    },
    {
      "job": 117931451757,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12168024896"
    },
    {
      "job": 117931451837,
      "time": 87,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12168418228"
    },
    {
      "job": 117931451766,
      "time": 85,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12168468093"
    },
    {
      "job": 117931451704,
      "time": 151,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169040144"
    }
  ],
  "_upstream": "https://github.com/mcmcs/forecomp",
  "_commit": {
    "id": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
    "author": "Minchul Shin <53390199+mcmcs@users.noreply.github.com>",
    "committer": "Minchul Shin <53390199+mcmcs@users.noreply.github.com>",
    "message": "Update ForeComp_1.0.0.tar.gz\n",
    "time": 1771636900
  },
  "_maintainer": {
    "name": "Minchul Shin",
    "email": "visiblehand@gmail.com",
    "login": "mcmcs",
    "description": "To learn about me, please visit my personal website:\nmcmcs.github.io",
    "uuid": 53390199
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Depends"
    },
    {
      "package": "forecast",
      "role": "Imports"
    },
    {
      "package": "astsa",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mcmcs",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-08",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "nateschor",
      "count": 54,
      "uuid": 70981003
    },
    {
      "user": "mcmcs",
      "count": 33,
      "uuid": 53390199
    }
  ],
  "_userbio": {
    "uuid": 53390199,
    "type": "user",
    "name": "Minchul Shin",
    "followers": 5,
    "description": "To learn about me, please visit my personal website:\r\nmcmcs.github.io"
  },
  "_downloads": {
    "count": 379,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ForeComp"
  },
  "_devurl": "https://github.com/mcmcs/forecomp",
  "_searchresults": 2,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ForeComp.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/mcmcs/forecomp",
  "_realowner": "mcmcs",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.9.0",
      "date": "2023-09-05"
    },
    {
      "version": "1.0.0",
      "date": "2026-02-20"
    }
  ],
  "_exports": [
    "dm.test.bt",
    "dm.test.bt.fb",
    "dm.test.cnr.t",
    "dm.test.cnr.w",
    "dm.test.ewc.fb",
    "dm.test.im",
    "dm.test.r",
    "dm.test.r.m",
    "dm.test.wpe.fb",
    "loss.diff.p",
    "Plot_Tradeoff"
  ],
  "_datasets": [
    {
      "name": "mikedata",
      "title": "Simulated data 1",
      "object": "mikedata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "f1",
        "f2"
      ],
      "rows": 75,
      "table": true,
      "tojson": true
    },
    {
      "name": "PGDP",
      "title": "Price Index for Gross National Product/Gross Domestic Product (PGDP)",
      "object": "PGDP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X1",
        "SPFfor_Step1",
        "SPFfor_Step2",
        "SPFfor_Step3",
        "SPFfor_Step4",
        "SPFfor_Step5",
        "IARfor_Step1",
        "IARfor_Step2",
        "IARfor_Step3",
        "IARfor_Step4",
        "IARfor_Step5",
        "NCfor_Step1",
        "NCfor_Step2",
        "NCfor_Step3",
        "NCfor_Step4",
        "NCfor_Step5",
        "DARfor_Step1",
        "DARfor_Step2",
        "DARfor_Step3",
        "DARfor_Step4",
        "DARfor_Step5",
        "DARMfor_Step1",
        "DARMfor_Step2",
        "DARMfor_Step3",
        "DARMfor_Step4",
        "DARMfor_Step5",
        "Realiz1",
        "Realiz2",
        "Realiz3",
        "Realiz4",
        "Realiz5"
      ],
      "rows": 232,
      "table": true,
      "tojson": true
    },
    {
      "name": "RGDP",
      "title": "Real Gross National Product/Gross Domestic Product (RGDP)",
      "object": "RGDP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X1",
        "SPFfor_Step1",
        "SPFfor_Step2",
        "SPFfor_Step3",
        "SPFfor_Step4",
        "SPFfor_Step5",
        "IARfor_Step1",
        "IARfor_Step2",
        "IARfor_Step3",
        "IARfor_Step4",
        "IARfor_Step5",
        "NCfor_Step1",
        "NCfor_Step2",
        "NCfor_Step3",
        "NCfor_Step4",
        "NCfor_Step5",
        "DARfor_Step1",
        "DARfor_Step2",
        "DARfor_Step3",
        "DARfor_Step4",
        "DARfor_Step5",
        "DARMfor_Step1",
        "DARMfor_Step2",
        "DARMfor_Step3",
        "DARMfor_Step4",
        "DARMfor_Step5",
        "Realiz1",
        "Realiz2",
        "Realiz3",
        "Realiz4",
        "Realiz5"
      ],
      "rows": 232,
      "table": true,
      "tojson": true
    },
    {
      "name": "TBILL",
      "title": "3-Month Treasury Bill Rate (TBILL)",
      "object": "TBILL",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X1",
        "SPFfor_Step1",
        "SPFfor_Step2",
        "SPFfor_Step3",
        "SPFfor_Step4",
        "SPFfor_Step5",
        "IARfor_Step1",
        "IARfor_Step2",
        "IARfor_Step3",
        "IARfor_Step4",
        "IARfor_Step5",
        "NCfor_Step1",
        "NCfor_Step2",
        "NCfor_Step3",
        "NCfor_Step4",
        "NCfor_Step5",
        "DARfor_Step1",
        "DARfor_Step2",
        "DARfor_Step3",
        "DARfor_Step4",
        "DARfor_Step5",
        "DARMfor_Step1",
        "DARMfor_Step2",
        "DARMfor_Step3",
        "DARMfor_Step4",
        "DARMfor_Step5",
        "Realiz1",
        "Realiz2",
        "Realiz3",
        "Realiz4",
        "Realiz5"
      ],
      "rows": 232,
      "table": true,
      "tojson": true
    },
    {
      "name": "UNEMP",
      "title": "Civilian Unemployment Rate (UNEMP)",
      "object": "UNEMP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X1",
        "SPFfor_Step1",
        "SPFfor_Step2",
        "SPFfor_Step3",
        "SPFfor_Step4",
        "SPFfor_Step5",
        "IARfor_Step1",
        "IARfor_Step2",
        "IARfor_Step3",
        "IARfor_Step4",
        "IARfor_Step5",
        "NCfor_Step1",
        "NCfor_Step2",
        "NCfor_Step3",
        "NCfor_Step4",
        "NCfor_Step5",
        "DARfor_Step1",
        "DARfor_Step2",
        "DARfor_Step3",
        "DARfor_Step4",
        "DARfor_Step5",
        "DARMfor_Step1",
        "DARMfor_Step2",
        "DARMfor_Step3",
        "DARMfor_Step4",
        "DARMfor_Step5",
        "Realiz1",
        "Realiz2",
        "Realiz3",
        "Realiz4",
        "Realiz5"
      ],
      "rows": 232,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dm.test.bt",
      "title": "Diebold-Mariano Test (Bartlett kernel, normal approximation)",
      "topics": [
        "dm.test.bt"
      ]
    },
    {
      "page": "dm.test.bt.fb",
      "title": "Diebold-Mariano Test (Bartlett kernel, fixed-b approximation)",
      "topics": [
        "dm.test.bt.fb"
      ]
    },
    {
      "page": "dm.test.cnr.t",
      "title": "CNR (2017), |t|-test statitic",
      "topics": [
        "dm.test.cnr.t"
      ]
    },
    {
      "page": "dm.test.cnr.w",
      "title": "CNR (2017), Wald-statistic",
      "topics": [
        "dm.test.cnr.w"
      ]
    },
    {
      "page": "dm.test.ewc.fb",
      "title": "Diebold-Mariano Test (EWC, fixed-b approximation)",
      "topics": [
        "dm.test.ewc.fb"
      ]
    },
    {
      "page": "dm.test.im",
      "title": "Ibragimov and Muller (2010)",
      "topics": [
        "dm.test.im"
      ]
    },
    {
      "page": "dm.test.r",
      "title": "Diebold-Mariano Test (with an original recommendation)",
      "topics": [
        "dm.test.r"
      ]
    },
    {
      "page": "dm.test.r.m",
      "title": "Diebold-Mariano Test (Modified-DM)",
      "topics": [
        "dm.test.r.m"
      ]
    },
    {
      "page": "dm.test.wpe.fb",
      "title": "Diebold-Mariano Test (WPE, fixed-m approximation)",
      "topics": [
        "dm.test.wpe.fb"
      ]
    },
    {
      "page": "loss.diff.p",
      "title": "Loss differential from two point forecasts",
      "topics": [
        "loss.diff.p"
      ]
    },
    {
      "page": "mikedata",
      "title": "Simulated data 1",
      "topics": [
        "mikedata"
      ]
    },
    {
      "page": "PGDP",
      "title": "Price Index for Gross National Product/Gross Domestic Product (PGDP)",
      "topics": [
        "PGDP"
      ]
    },
    {
      "page": "Plot_Tradeoff",
      "title": "Visualizes the size distortion maximum power loss tradeoff from the Diebold-Mariano test for equal predictive accuracy",
      "topics": [
        "Plot_Tradeoff"
      ]
    },
    {
      "page": "RGDP",
      "title": "Real Gross National Product/Gross Domestic Product (RGDP)",
      "topics": [
        "RGDP"
      ]
    },
    {
      "page": "TBILL",
      "title": "3-Month Treasury Bill Rate (TBILL)",
      "topics": [
        "TBILL"
      ]
    },
    {
      "page": "UNEMP",
      "title": "Civilian Unemployment Rate (UNEMP)",
      "topics": [
        "UNEMP"
      ]
    }
  ],
  "_readme": "https://github.com/mcmcs/forecomp/raw/HEAD/README.md",
  "_rundeps": [
    "astsa",
    "cli",
    "colorspace",
    "cpp11",
    "farver",
    "forecast",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lmtest",
    "magrittr",
    "nlme",
    "nnet",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "timeDate",
    "urca",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "forecomp",
  "_universes": [
    "mcmcs"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-19T07:02:56.000Z",
      "distro": "resolute",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/0e99bb8f8b64248355a22de2b36c7e23d3e870fb8a16cb1d312d3ea6df3b864c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-19T07:03:31.000Z",
      "distro": "resolute",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/d4234fb370aefe3015af544bae236168af12dd0b987031146e7913d792309371",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-19T07:23:49.000Z",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/1c0b216a1c630cea220e74297dc576499661effe6f281d0c0d9f31525d300301",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-19T07:08:11.000Z",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/6e714c5a3cb0250316a9c4ce99db27efb6f71bc249feb8be730bbb96cf416914",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-19T07:02:57.000Z",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/7521cc9418d7b9e5dae25a7080c69225b1e6fa93e1fb0c342d40b4c2e9d89a9e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-19T07:02:16.000Z",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/9af71bc024bf8079a0d3aae6f5a6c8470f24080a5515d45d0c7691778bd04949",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-19T07:02:16.000Z",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/a7b6cb2daa0f188a9eae0471dcf9ad41eff2fc0f28899ae2c98e84a2017fc885",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-19T07:03:19.000Z",
      "commit": "b488a5a40d6cd988d8d3287badeeef5ceef2ed57",
      "fileid": "https://r2.ropensci.org/9a27e99afc8867d43433d2ab70df3674d1b4c4e4f2f0ffb189ec9f16f4c85868",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mcmcs/actions/runs/39212997839"
    }
  ]
}