{
  "_id": "6a3bdf0dc2c86aa1dcf0ddaf",
  "Package": "svines",
  "Title": "Stationary Vine Copula Models",
  "Version": "0.2.7",
  "Authors@R": "person(given = \"Thomas\",\nfamily = \"Nagler\",\nrole = c(\"aut\", \"cre\"),\nemail = \"mail@tnagler.com\")",
  "Description": "Provides functionality to fit and simulate from stationary\nvine copula models for time series, see Nagler et al. (2022)\n<doi:10.1016/j.jeconom.2021.11.015>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "URL": "https://github.com/tnagler/svines",
  "BugReports": "https://github.com/tnagler/svines/issues",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake make",
  "Repository": "https://tnagler.r-universe.dev",
  "Date/Publication": "2026-06-24 12:58:57 UTC",
  "RemoteUrl": "https://github.com/tnagler/svines",
  "RemoteRef": "HEAD",
  "RemoteSha": "cabe15c0728657f25bafe951aa73ac50baf956e2",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-24 13:36:30 UTC",
    "User": "root"
  },
  "Author": "Thomas Nagler [aut, cre]",
  "Maintainer": "Thomas Nagler <mail@tnagler.com>",
  "MD5sum": "af643d3cd4117ad7ed4ec2f2b698758c",
  "_user": "tnagler",
  "_type": "src",
  "_file": "svines_0.2.7.tar.gz",
  "_fileid": "1e59f896a5c88c9b53f86881b253f7caece281c3d7dbf3d31d8154ac4f53030b",
  "_filesize": 442763,
  "_sha256": "1e59f896a5c88c9b53f86881b253f7caece281c3d7dbf3d31d8154ac4f53030b",
  "_created": "2026-06-24T13:36:30.000Z",
  "_published": "2026-06-24T13:43:41.973Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 83208296666,
      "time": 223,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7851323154"
    },
    {
      "job": 83208296947,
      "time": 224,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7851323102"
    },
    {
      "job": 83208296706,
      "time": 262,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851341026"
    },
    {
      "job": 83208296761,
      "time": 236,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851328530"
    },
    {
      "job": 83208296644,
      "time": 252,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7851334152"
    },
    {
      "job": 83208296660,
      "time": 253,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7851335544"
    },
    {
      "job": 83208296679,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851296193"
    },
    {
      "job": 83208296709,
      "time": 340,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851373499"
    },
    {
      "job": 83207362002,
      "time": 256,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851220596"
    },
    {
      "job": 83208296622,
      "time": 210,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851316316"
    },
    {
      "job": 83208296642,
      "time": 236,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7851335049"
    },
    {
      "job": 83208296680,
      "time": 239,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7851329442"
    },
    {
      "job": 83208296742,
      "time": 230,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851325590"
    }
  ],
  "_buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/tnagler/svines",
  "_commit": {
    "id": "cabe15c0728657f25bafe951aa73ac50baf956e2",
    "author": "DiegoFCarvalho <97023571+DiegoFCarvalho@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add support for discrete margins (#9)\n\n* phase 1: reconnaissance, correspondence map, failing discrete test\n\n* ignore personal working files\n\n* phase 2.1: remove discrete-input gate in svinecop()\n\n* phase 2.3: discrete-aware spread_lag\n\nExtend spread_lag with an n_discrete parameter to produce compact-form output (all-reals-then-all-shadows) under doubled-column input. The previous implementation assumed one column per cross-sectional variable per lag, which broke when var_types contained 'd' entries: spread_lag produced a too-narrow lagged matrix, make_base_tree stored out-of-bounds Eigen views, and downstream bicop fits dereferenced uninitialized memory, surfacing as 'all data must be contained in [0,1]^d.' The new spread_lag matches upstream Vinecop's canonical compact form, so consumer-side code (d_ increment in add_lag, data.col(d_ + disc_cols[j]) in make_base_tree) is unchanged. Reduces bit-cleanly to the previous behaviour when n_discrete == 0. Tests: 56 PASS / 0 FAIL (was 55 PASS / 1 FAIL).\n\n* phase 2.5: lift discrete gate in svinecop_dist()\n\nMirrors commit 5128e06 (phase 2.1 lift on svinecop). Removes the if (any(var_types != 'c')) stop(...) gate at R/svinecop.R:263-264 so the manual-construction entry point svinecop_dist() accepts var_types containing 'd'. Adds a test exercising the manual-construction path with d=2, p=0, var_types=c('d','d'). Tests: 57 PASS / 0 FAIL (was 56 PASS / 0 FAIL).\n\n* phase 2.5: cs_structure-aware var_types default in svinecop()\n\nReplace rep('c', NCOL(data)) default at R/svinecop.R:77 with a body block that infers from cs_structure when provided, falls back to NCOL(data) otherwise. Fixes the cs_structure-given path's structural inconsistency where the default lag-replicated to an over-long var_types vector and threw at construction. Two new tests in tests/testthat/test-discrete.R: continuous case asserts the inference works (contract lock-in), discrete case asserts the failure mode correctly shifts to a data-shape error (scope bou",
    "time": 1782305937
  },
  "_maintainer": {
    "name": "Thomas Nagler",
    "email": "mail@tnagler.com",
    "login": "tnagler",
    "description": "",
    "uuid": 8761435
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "rvinecopulib",
      "version": ">= 0.7.2.1.0",
      "role": "Depends"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppThread",
      "role": "LinkingTo"
    },
    {
      "package": "BH",
      "role": "LinkingTo"
    },
    {
      "package": "wdm",
      "role": "LinkingTo"
    },
    {
      "package": "rvinecopulib",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "univariateML",
      "role": "Imports"
    },
    {
      "package": "wdm",
      "role": "Imports"
    },
    {
      "package": "fGarch",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "ggraph",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    }
  ],
  "_owner": "tnagler",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-26",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "tnagler",
      "count": 23,
      "uuid": 8761435
    },
    {
      "user": "andrjohns",
      "count": 1,
      "uuid": 27717896
    },
    {
      "user": "diegofcarvalho",
      "count": 1,
      "uuid": 97023571
    }
  ],
  "_userbio": {
    "uuid": 8761435,
    "type": "user",
    "name": "Thomas Nagler",
    "followers": 118
  },
  "_downloads": {
    "count": 345,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/svines"
  },
  "_devurl": "https://github.com/tnagler/svines",
  "_searchresults": 6,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/svines.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/tnagler/svines",
  "_realowner": "tnagler",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2022-03-23"
    },
    {
      "version": "0.1.3",
      "date": "2022-03-28"
    },
    {
      "version": "0.1.4",
      "date": "2022-04-13"
    },
    {
      "version": "0.2.0",
      "date": "2023-11-21"
    },
    {
      "version": "0.2.1",
      "date": "2023-11-22"
    },
    {
      "version": "0.2.2",
      "date": "2023-12-03"
    },
    {
      "version": "0.2.3",
      "date": "2024-01-18"
    },
    {
      "version": "0.2.4",
      "date": "2025-01-17"
    },
    {
      "version": "0.2.7",
      "date": "2025-06-12"
    }
  ],
  "_exports": [
    "svine",
    "svine_bootstrap_models",
    "svine_dist",
    "svine_hessian",
    "svine_loglik",
    "svine_pseudo_residuals",
    "svine_scores",
    "svine_sim",
    "svinecop",
    "svinecop_dist",
    "svinecop_hessian",
    "svinecop_loglik",
    "svinecop_pseudo_residuals",
    "svinecop_scores",
    "svinecop_sim"
  ],
  "_datasets": [
    {
      "name": "returns",
      "title": "Stock returns of 20 companies",
      "object": "returns",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Allianz",
        "AXA",
        "Generali",
        "MetLife",
        "Prudential",
        "Ping An",
        "BMW",
        "General Motors",
        "Toyota",
        "Hyundai",
        "Microsoft",
        "Apple",
        "Amazon",
        "Alphabet",
        "Alibaba",
        "Exxon",
        "Shell",
        "PetroChina",
        "Airbus",
        "Boeing"
      ],
      "rows": 1296,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "returns",
      "title": "Stock returns of 20 companies",
      "topics": [
        "returns"
      ]
    },
    {
      "page": "svine",
      "title": "Stationary vine distribution models",
      "topics": [
        "svine"
      ]
    },
    {
      "page": "svine_bootstrap_models",
      "title": "Bootstrap S-vine models",
      "topics": [
        "svine_bootstrap_models"
      ]
    },
    {
      "page": "svine_dist",
      "title": "Custom S-vine distribution models",
      "topics": [
        "svine_dist"
      ]
    },
    {
      "page": "svine_hessian",
      "title": "Expected hessian of a parametric S-vine models",
      "topics": [
        "svine_hessian"
      ]
    },
    {
      "page": "svine_loglik",
      "title": "Log-likelihood for S-vine models",
      "topics": [
        "svine_loglik"
      ]
    },
    {
      "page": "svine_pseudo_residuals",
      "title": "Pseudo-residuals of S-vine models",
      "topics": [
        "svine_pseudo_residuals"
      ]
    },
    {
      "page": "svine_scores",
      "title": "Score function of parametric S-vine models",
      "topics": [
        "svine_scores"
      ]
    },
    {
      "page": "svine_sim",
      "title": "Simulate from a S-vine model",
      "topics": [
        "svine_sim"
      ]
    },
    {
      "page": "svinecop",
      "title": "Stationary vine copula models",
      "topics": [
        "svinecop"
      ]
    },
    {
      "page": "svinecop_dist",
      "title": "Custom S-vine models",
      "topics": [
        "svinecop_dist"
      ]
    },
    {
      "page": "svinecop_hessian",
      "title": "Expected hessian for S-vine copula models",
      "topics": [
        "svinecop_hessian"
      ]
    },
    {
      "page": "svinecop_loglik",
      "title": "Log-likelihood for S-vine copula models",
      "topics": [
        "svinecop_loglik"
      ]
    },
    {
      "page": "svinecop_pseudo_residuals",
      "title": "Pseudo-residuals of S-vine copula models",
      "topics": [
        "svinecop_pseudo_residuals"
      ]
    },
    {
      "page": "svinecop_scores",
      "title": "Log-likelihood scores for S-vine copula models",
      "topics": [
        "svinecop_scores"
      ]
    },
    {
      "page": "svinecop_sim",
      "title": "Simulate from a S-vine copula model",
      "topics": [
        "svinecop_sim"
      ]
    }
  ],
  "_readme": "https://github.com/tnagler/svines/raw/HEAD/README.md",
  "_rundeps": [
    "actuar",
    "assertthat",
    "bbmle",
    "bdsmatrix",
    "BH",
    "cli",
    "cvar",
    "expint",
    "extraDistr",
    "fastICA",
    "fBasics",
    "fGarch",
    "gbutils",
    "glue",
    "gss",
    "GUILDS",
    "intervals",
    "kde1d",
    "lattice",
    "lifecycle",
    "logitnorm",
    "magrittr",
    "MASS",
    "Matrix",
    "mvtnorm",
    "nakagami",
    "nloptr",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "poilog",
    "poweRlaw",
    "pracma",
    "randtoolbox",
    "rbibutils",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "RcppThread",
    "Rdpack",
    "Rfast",
    "rlang",
    "rngWELL",
    "rvinecopulib",
    "sads",
    "spatial",
    "stabledist",
    "tibble",
    "timeDate",
    "timeSeries",
    "univariateML",
    "utf8",
    "vctrs",
    "VGAM",
    "wdm",
    "zigg"
  ],
  "_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"
    }
  ],
  "_score": 3.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "svines",
  "_universes": [
    "tnagler"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-06-24T13:40:19.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "24a1e7c479310ec75d0dd9f8a4567a2a20370d69568021654c8343327326e1c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-06-24T13:40:09.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "649e8b7134c0fbce405a8ac935275627a00d7699e41fe04cfc88a6fb00d68220",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-06-24T13:41:02.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "127cd992caece4fee0f49d1ec07edb779f25fd8ea6096138b7e815a4b385f03e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-06-24T13:40:16.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "1e5e174f9922d9cbbfdf52e6a1ce24d3801f8a240d8b74411ff184e67985f355",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-06-24T13:39:47.000Z",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "b0ebfe07d88a9b16643e7f3cdc2623fa5a6006ff9073d1676fc26aba934a0668",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-06-24T13:40:02.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "2542b8e7072ef8e64edf816076c1bcfb1f1007af35165dc22470bfb587dbe4c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-06-24T13:39:10.000Z",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "632df5ecc0bb980711f4ee27661a271c5aff2c6f4fb7b4d104ea4900c412db65",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-06-24T13:40:47.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "b523d44d82dcc24855fa754d7fea2ef91b3a4f6905272ec702fb100d0b6480c8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.7",
      "date": "2026-06-24T13:40:37.000Z",
      "arch": "emscripten",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "136f7de49edad5bf5fe7d43afae6e8e70f663606abdd8ad20d999ef852bcaf23",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-06-24T13:39:14.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "2c3fef941787d953f20f8dfcf3ca94f618cfff612487012cd33346df09bc79a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-06-24T13:39:01.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "571a4add85493a3bd0ef0b9f9f9b733066aa806da52e9b9e484c3ae345ab6919",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-06-24T13:39:02.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "136ddba20b763257d4a1abe3df2efba0c8f419124a0849049e9a09ba0f83c005",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/28102328668"
    }
  ]
}