{
  "_id": "6a6346fbb715785e4da9cb73",
  "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",
  "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-07-24 08:26:58 UTC",
    "User": "root"
  },
  "Author": "Thomas Nagler [aut, cre]",
  "Maintainer": "Thomas Nagler <mail@tnagler.com>",
  "_user": "tnagler",
  "_type": "src",
  "_file": "svines_0.2.7.tar.gz",
  "_fileid": "https://r2.ropensci.org/cd522b578c2a6c627993de9075dfe9bf3cd50e5ab2e76ef9cbfef39844d6431c",
  "_filesize": 442522,
  "_sha256": "cd522b578c2a6c627993de9075dfe9bf3cd50e5ab2e76ef9cbfef39844d6431c",
  "_expires": "2026-11-01T11:05:29.000Z",
  "_created": "2026-07-24T08:26:58.000Z",
  "_published": "2026-07-24T11:05:31.445Z",
  "_jobs": [
    {
      "job": 89436152313,
      "time": 184,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8591085600"
    },
    {
      "job": 89436152270,
      "time": 229,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8591103508"
    },
    {
      "job": 89436152285,
      "time": 189,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8591088432"
    },
    {
      "job": 89436152259,
      "time": 233,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8591104459"
    },
    {
      "job": 89436152275,
      "time": 165,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8594638537"
    },
    {
      "job": 89436152291,
      "time": 305,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8594573371"
    },
    {
      "job": 89436152294,
      "time": 130,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8594595563"
    },
    {
      "job": 89436152277,
      "time": 322,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8594463267"
    },
    {
      "job": 89435274258,
      "time": 280,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8591012571"
    },
    {
      "job": 89436152192,
      "time": 171,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8591080071"
    },
    {
      "job": 89436152242,
      "time": 229,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8591102653"
    },
    {
      "job": 89436152265,
      "time": 201,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8591092493"
    },
    {
      "job": 89436152301,
      "time": 230,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8591105071"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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": 253,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/svines"
  },
  "_devurl": "https://github.com/tnagler/svines",
  "_searchresults": 6,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_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-07-24T08:30:08.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/c684f270ad039238fd3a35976e2dd4918ca7bd34c56eae140c8adbf7db5d513d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-07-24T08:30:40.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/a9a5df6dab77bd4ea6852ce45b6ec5127d54ea039122620e945861cc5fda436b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-07-24T08:30:15.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/7e06389671aa25ffa321f59b9ff69c3b587cfd4b967ba12f66bd03e83fc9308a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-07-24T08:30:40.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/e38b1c2d0d7fb3705fc274aec731218d33179240ed8617c3f0714a9461bdde5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-07-24T11:03:55.000Z",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/779a03810cf8713c7de026fabe291e38eb5cbacf6fb984ac126b7f728354e7f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-07-24T10:59:35.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/9169db5e63d303bd076b723deb82e4ed7ae81f04f21f4a465dfc8838005c718f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-07-24T11:02:00.000Z",
      "arch": "aarch64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/d9e52fcc353d06459cabaafd18c8c5f3dbcfed51e33dc1b5342f1f8c5e503da4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-07-24T10:53:54.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/d550856ac76ec2a2b84a72f998e18a1a86182d9b54deb343aced94aeba82033d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.7",
      "date": "2026-07-24T08:30:28.000Z",
      "arch": "emscripten",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/c802b38ead36b21e33abec8fa2592cfe3b14367f670c1625b876ae4e17f7294d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-07-24T08:29:16.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/2b0e43667d7dab5e46cd1b3234606068603ad0c9df23dcc4b3d3ef1599e8ea0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-07-24T08:29:15.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/884d7e9fd8999987cc652712de6a806c4abcc8e6599890c6a9e3251c762018a5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-07-24T08:29:42.000Z",
      "arch": "x86_64",
      "commit": "cabe15c0728657f25bafe951aa73ac50baf956e2",
      "fileid": "https://r2.ropensci.org/7a1cd2c2512868c830a419427f7abcc73aa6bbb5a56bc36cd551489f4ef2782f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tnagler/actions/runs/30078733910"
    }
  ]
}