{
  "_id": "6af5d048f58eaab79920c108",
  "Package": "stochvolTMB",
  "Type": "Package",
  "Title": "Likelihood Estimation of Stochastic Volatility Models",
  "Version": "0.4.0",
  "Date": "2026-11-06",
  "Authors@R": "person(\"Jens\", \"Wahl\", role = c(\"aut\", \"cre\"), email = \"jens.c.wahl@gmail.com\")",
  "Description": "Parameter estimation for stochastic volatility models\nusing maximum likelihood. The latent log-volatility is\nintegrated out of the likelihood using the Laplace\napproximation. The models are fitted via 'TMB' (Template Model\nBuilder) (Kristensen, Nielsen, Berg, Skaug, and Bell (2016)\n<doi:10.18637/jss.v070.i05>). The observation error can be\nGaussian, t, skew-Gaussian or skew t (Jones and Faddy (2003)\n<doi:10.1111/1467-9868.00378>), with or without leverage. Exact\none-step-ahead residuals, Value at Risk and Expected Shortfall\nare calculated with a filter on a grid for the log-volatility,\nand the Value at Risk can be backtested with the tests of\nKupiec (1995) <doi:10.3905/jod.1995.407942> and Christoffersen\n(1998) <doi:10.2307/2527341>.",
  "License": "GPL-3",
  "URL": "https://github.com/JensWahl/stochvolTMB,\nhttps://jenswahl.github.io/stochvolTMB/",
  "BugReports": "https://github.com/JensWahl/stochvolTMB/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://jenswahl.r-universe.dev",
  "Date/Publication": "2026-11-07 04:58:35 UTC",
  "RemoteUrl": "https://github.com/jenswahl/stochvoltmb",
  "RemoteRef": "HEAD",
  "RemoteSha": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-12 14:25:47 UTC",
    "User": "root"
  },
  "Author": "Jens Wahl [aut, cre]",
  "Maintainer": "Jens Wahl <jens.c.wahl@gmail.com>",
  "_user": "jenswahl",
  "_type": "src",
  "_file": "stochvolTMB_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/4bd6630ddbbe69bef3d2aa4f698f6c70db8a8f25e8763d9ea1e815960266e73a",
  "_filesize": 3341869,
  "_sha256": "4bd6630ddbbe69bef3d2aa4f698f6c70db8a8f25e8763d9ea1e815960266e73a",
  "_expires": "2027-02-20T14:42:14.000Z",
  "_created": "2026-11-12T14:25:47.000Z",
  "_published": "2026-11-20T02:01:53.790Z",
  "_upstream": "https://github.com/jenswahl/stochvoltmb",
  "_status": "success",
  "_maintainer": {
    "name": "Jens Wahl",
    "email": "jens.c.wahl@gmail.com",
    "login": "jenswahl",
    "description": "",
    "uuid": 25640115
  },
  "_jobs": [
    {
      "job": 131247648673,
      "time": 218,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13953896194"
    },
    {
      "job": 131247648637,
      "time": 233,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13952832727"
    },
    {
      "job": 131247648680,
      "time": 216,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13952902844"
    },
    {
      "job": 131247648652,
      "time": 233,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13953257760"
    },
    {
      "job": 131247648738,
      "time": 208,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13953183678"
    },
    {
      "job": 131247649340,
      "time": 450,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13953863118"
    },
    {
      "job": 131247648804,
      "time": 203,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13952869398"
    },
    {
      "job": 131247648767,
      "time": 483,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13954292011"
    },
    {
      "job": 131242777403,
      "time": 480,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13952887033"
    },
    {
      "job": 131247648722,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 131247648569,
      "time": 236,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13953462150"
    },
    {
      "job": 131247648671,
      "time": 340,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13952643423"
    },
    {
      "job": 131247649014,
      "time": 318,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13953472084"
    },
    {
      "job": 131247648851,
      "time": 246,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13951929594"
    },
    {
      "job": 131247649365,
      "time": 330,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13953542270"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698",
  "_commit": {
    "id": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
    "author": "Jens Christian Wahl <jens.c.wahl@gmail.com>",
    "committer": "Jens Christian Wahl <jens.c.wahl@gmail.com>",
    "message": "Skip the three slowest tests on CRAN and explain the spelling note\n\nOn win-builder the tests took 446 s and the vignette 270 s. The three\nskipped tests take 77 of the 111 s locally and still run on GitHub Actions.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n",
    "time": 1794027515
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "TMB",
      "role": "LinkingTo"
    },
    {
      "package": "TMB",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "sn",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "stochvol",
      "role": "Suggests"
    }
  ],
  "_owner": "jenswahl",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-45",
      "n": 16
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2026-11-07"
    }
  ],
  "_stars": 9,
  "_contributors": [
    {
      "user": "jenswahl",
      "count": 82,
      "uuid": 25640115
    }
  ],
  "_userbio": {
    "uuid": 25640115,
    "type": "user",
    "name": "Jens Christian Wahl",
    "followers": 18
  },
  "_downloads": {
    "count": 470,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stochvolTMB"
  },
  "_devurl": "https://github.com/jenswahl/stochvoltmb",
  "_pkgdown": "https://jenswahl.github.io/stochvolTMB/",
  "_searchresults": 29,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.2",
  "_assets": [
    "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",
    "extra/stochvolTMB.html"
  ],
  "_homeurl": "https://github.com/jenswahl/stochvoltmb",
  "_realowner": "jenswahl",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-09-02"
    },
    {
      "version": "0.1.1",
      "date": "2020-09-02"
    },
    {
      "version": "0.1.2",
      "date": "2020-09-04"
    },
    {
      "version": "0.2.0",
      "date": "2021-08-13"
    },
    {
      "version": "0.3.0",
      "date": "2025-01-31"
    },
    {
      "version": "0.4.0",
      "date": "2026-11-08"
    }
  ],
  "_exports": [
    "backtest_var",
    "compare_models",
    "demo",
    "estimate_parameters",
    "forecast_var_es",
    "get_nll",
    "logit",
    "plot_diagnostics",
    "plot_forecast",
    "plot_returns",
    "plot_var",
    "run_shiny_demo",
    "sim_sv",
    "simulate_parameters",
    "var_es"
  ],
  "_datasets": [
    {
      "name": "spy",
      "title": "Daily closing prices for the S&P500 from 2005 to 2018.",
      "object": "spy",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "date",
        "price",
        "log_return"
      ],
      "rows": 3522,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "backtest_var",
      "title": "Backtest Value at Risk and Expected Shortfall",
      "topics": [
        "backtest_var"
      ]
    },
    {
      "page": "coef.stochvolTMB",
      "title": "Extract parameter estimates and their covariance matrix",
      "topics": [
        "coef.stochvolTMB",
        "vcov.stochvolTMB"
      ]
    },
    {
      "page": "compare_models",
      "title": "Fit several models and compare them",
      "topics": [
        "compare_models"
      ]
    },
    {
      "page": "estimate_parameters",
      "title": "Estimate parameters for the stochastic volatility model",
      "topics": [
        "estimate_parameters"
      ]
    },
    {
      "page": "forecast_var_es",
      "title": "Value at Risk and Expected Shortfall for several days ahead",
      "topics": [
        "forecast_var_es"
      ]
    },
    {
      "page": "logit",
      "title": "Logit transformation from the real line to (-1, 1).",
      "topics": [
        "logit"
      ]
    },
    {
      "page": "plot_diagnostics",
      "title": "Diagnostic plots based on one-step-ahead residuals",
      "topics": [
        "plot_diagnostics"
      ]
    },
    {
      "page": "plot_returns",
      "title": "Plot returns with bands from the fitted model",
      "topics": [
        "plot_returns"
      ]
    },
    {
      "page": "plot_var",
      "title": "Plot returns with the one-step-ahead Value at Risk",
      "topics": [
        "plot_var"
      ]
    },
    {
      "page": "plot.stochvolTMB",
      "title": "Plot the estimated latent volatility process",
      "topics": [
        "plot.stochvolTMB"
      ]
    },
    {
      "page": "predict.stochvolTMB",
      "title": "Predict future returns and future volatilities",
      "topics": [
        "predict.stochvolTMB"
      ]
    },
    {
      "page": "residuals.stochvolTMB",
      "title": "Calculate one-step-ahead (OSA) residuals for stochastic volatility model.",
      "topics": [
        "residuals.stochvolTMB"
      ]
    },
    {
      "page": "run_shiny_demo",
      "title": "Run the shiny demo",
      "topics": [
        "run_shiny_demo"
      ]
    },
    {
      "page": "sim_sv",
      "title": "Simulate log-returns from a stochastic volatility model",
      "topics": [
        "sim_sv"
      ]
    },
    {
      "page": "simulate_parameters",
      "title": "Simulate from the asymptotic distribution of the parameter estimates",
      "topics": [
        "simulate_parameters"
      ]
    },
    {
      "page": "spy",
      "title": "Daily closing prices for the S&P500 from 2005 to 2018.",
      "topics": [
        "spy"
      ]
    },
    {
      "page": "summary",
      "title": "Summary tables of model parameters",
      "topics": [
        "summary.stochvolTMB"
      ]
    },
    {
      "page": "summary.stochvolTMB_predict",
      "title": "Calculate quantiles based on predictions from the predictive distribution",
      "topics": [
        "summary.stochvolTMB_predict"
      ]
    },
    {
      "page": "var_es",
      "title": "One-step-ahead Value at Risk and Expected Shortfall",
      "topics": [
        "var_es"
      ]
    }
  ],
  "_readme": "https://github.com/jenswahl/stochvoltmb/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "data.table",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mnormt",
    "numDeriv",
    "quantreg",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "sn",
    "SparseM",
    "survival",
    "TMB",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "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": "stochvolTMB_vignette.Rmd",
      "filename": "stochvolTMB_vignette.html",
      "title": "stochvolTMB: Likelihood estimation of stochastic volatility",
      "author": "Jens Christian Wahl",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The stochastic volatility model",
        "Skewness and the shape parameter",
        "Usage",
        "Example",
        "Checking the fit",
        "Value at Risk and Expected Shortfall",
        "Backtesting",
        "More than one day ahead",
        "Comparison to stochvol",
        "Estimation",
        "Laplace Approximation",
        "One-step-ahead residuals",
        "Why OSA residuals are standard Gaussian",
        "The filter",
        "From integrals to sums",
        "Models with leverage",
        "Comparison with the Laplace approximation",
        "References"
      ],
      "created": "2020-07-31 20:38:56",
      "modified": "2026-11-06 22:39:17",
      "commits": 19
    }
  ],
  "_score": 5.416640507338281,
  "_indexed": true,
  "_nocasepkg": "stochvoltmb",
  "_universes": [
    "jenswahl"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-12T14:27:56.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/521649d7c8236ba892a827a5ecf83c9bb7177e7224ce25724726222790edecdf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-12T14:28:14.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/8a466d73a046c5d3b204dae3113b2d1ba7bd3339608cc19f34526012be485a90",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-12T14:27:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/0e3e3c5a5bd9ca8f5cf86917bb4377f9b90e82924ceb13a9ea58e740d84983d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-12T14:28:16.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/99baceb1bd03546ed8df04f9fd699f5660f8f855ff88ab0ebba252f1a4487be8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-11-12T14:36:43.000Z",
      "arch": "aarch64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/22c0034b4f0f97ba0537147ceb7f33969a1974b42d631293301b6e2afd797252",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-11-12T14:37:46.000Z",
      "arch": "x86_64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/9e9312fb70da03a2065a6f97f5cc2e924200f39bc9869f2974b4ca1e82909c8b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-11-12T14:39:35.000Z",
      "arch": "aarch64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/6b4184a7096c809fa4525d52c97dc6cc78ffb5d250fcc6769b81d5f23e64d187",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-11-12T14:36:00.000Z",
      "arch": "x86_64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/8ab3863b95613972153951d441d26a94b384d155b72499b4dc2b550d80ff2910",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-12T14:29:24.000Z",
      "arch": "aarch64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/ace53cc999db775cb446b5b6956e82514a55092ce70da658b95d74538f7568a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-12T14:28:30.000Z",
      "arch": "x86_64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/03e732cc5be129d44e5d48e56e6eca0d9ab929bde9e5582aa32540d184679822",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-12T14:28:23.000Z",
      "arch": "x86_64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/183de54ddf69130e3b5f054c424979eb7774b6bd61d3ecdf97b9cf6482e07018",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-12T14:29:09.000Z",
      "arch": "aarch64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/562843598fe7be1379edbe9c031ff45077cd0f47488b73060b873071f1af3871",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-12T14:28:29.000Z",
      "arch": "x86_64",
      "commit": "54ae4071ccd680f56f7160c6842469f602c9a8b0",
      "fileid": "https://r2.ropensci.org/110f43fac97c1c235e8e818957b436ed9641a8aa938e82402d6513418f8d6e45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jenswahl/actions/runs/43235764698"
    }
  ]
}