{
  "_id": "6aae4cb93d719c1f8407ae62",
  "Package": "WRI",
  "Type": "Package",
  "Title": "Wasserstein Regression and Inference",
  "Version": "0.2.3",
  "Authors@R": "c(\nperson(\"Alexander\", \"Petersen\", email = \"petersen@stat.byu.edu\", role = c(\"aut\", \"cre\")),\nperson(\"Xi\", \"Liu\", email = \"xiliu@ucsb.edu\",  role = \"aut\"),\nperson(\"Chao\", \"Zhang\", email = \"czhang@pstat.ucsb.edu\", role = \"aut\"),\nperson(\"Matthew\", \"Coleman\", email = \"matthewbcoleman@ucsb.edu\", role = \"aut\"))",
  "Author": "Alexander Petersen [aut, cre], Xi Liu [aut], Chao Zhang [aut],\nMatthew Coleman [aut]",
  "Description": "Implementation of the methodologies described in 1)\nAlexander Petersen, Xi Liu and Afshin A. Divani (2021)\n<doi:10.1214/20-aos1971>, including global F tests, partial F\ntests, intrinsic Wasserstein-infinity bands and Wasserstein\ndensity bands, and 2) Chao Zhang, Piotr Kokoszka and Alexander\nPetersen (2022) <doi:10.1111/jtsa.12590>, including estimation,\nprediction, and inference of the Wasserstein autoregressive\nmodels.",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-09-19 08:42:52 UTC",
    "User": "root"
  },
  "Maintainer": "Alexander Petersen <petersen@stat.byu.edu>",
  "Config/pak/sysreqs": "cmake libgmp3-dev make libicu-dev libuv1-dev\npkg-config libclang-dev",
  "Repository": "https://alexpete.r-universe.dev",
  "Date/Publication": "2026-03-30 09:51:29 UTC",
  "RemoteUrl": "https://github.com/cran/WRI",
  "RemoteRef": "HEAD",
  "RemoteSha": "3cef791c5d1725806d68dc241971e3010ec420b5",
  "_user": "alexpete",
  "_type": "src",
  "_file": "WRI_0.2.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/e4dfac7f2a3079101977c8ef1afd1f6760b881926ec62212224d6758ba7bcd9b",
  "_filesize": 763147,
  "_sha256": "e4dfac7f2a3079101977c8ef1afd1f6760b881926ec62212224d6758ba7bcd9b",
  "_expires": "2026-12-28T08:49:59.000Z",
  "_created": "2026-09-19T08:42:52.000Z",
  "_published": "2026-09-19T08:50:01.761Z",
  "_jobs": [
    {
      "job": 105870150275,
      "time": 162,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10581171027"
    },
    {
      "job": 105870150330,
      "time": 216,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10582155091"
    },
    {
      "job": 105870150272,
      "time": 157,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10581430726"
    },
    {
      "job": 105870150259,
      "time": 153,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10581815418"
    },
    {
      "job": 105870150337,
      "time": 192,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10581515475"
    },
    {
      "job": 105870150308,
      "time": 298,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10581300863"
    },
    {
      "job": 105870150301,
      "time": 150,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10581049698"
    },
    {
      "job": 105870150386,
      "time": 351,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10581740570"
    },
    {
      "job": 105869687556,
      "time": 231,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10581250729"
    },
    {
      "job": 105870150205,
      "time": 184,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10581014952"
    },
    {
      "job": 105870150309,
      "time": 382,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10581825558"
    },
    {
      "job": 105870150333,
      "time": 182,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10582140155"
    },
    {
      "job": 105870150328,
      "time": 136,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10581840416"
    },
    {
      "job": 105870150319,
      "time": 355,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10581265999"
    },
    {
      "job": 105870150341,
      "time": 128,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10582140081"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720",
  "_status": "success",
  "_upstream": "https://github.com/cran/WRI",
  "_commit": {
    "id": "3cef791c5d1725806d68dc241971e3010ec420b5",
    "author": "Alexander Petersen <petersen@stat.byu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.3\n",
    "time": 1774864289
  },
  "_maintainer": {
    "name": "Alexander Petersen",
    "email": "petersen@stat.byu.edu",
    "login": "alexpete",
    "description": "",
    "uuid": 3698637
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "fdapace",
      "version": ">= 0.2.0",
      "role": "Imports"
    },
    {
      "package": "Rfast",
      "version": ">= 1.9.8",
      "role": "Imports"
    },
    {
      "package": "CVXR",
      "version": ">= 0.99.7",
      "role": "Imports"
    },
    {
      "package": "expm",
      "version": ">= 0.999-4",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.2.1",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "version": ">= 2.3",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.3",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "version": ">= 1.1-0",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "polynom",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "modeest",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-51",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.2.1",
      "date": "2025-12-16"
    },
    {
      "name": "0.2.2",
      "date": "2026-03-28"
    },
    {
      "name": "0.2.3",
      "date": "2026-03-30"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "alexpete",
      "count": 1,
      "uuid": 3698637
    }
  ],
  "_userbio": {
    "uuid": 3698637,
    "type": "user",
    "name": "Alexander Petersen",
    "followers": 1
  },
  "_downloads": {
    "count": 405,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/WRI"
  },
  "_searchresults": 13,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_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/WRI.html"
  ],
  "_realowner": "alexpete",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-11-23"
    },
    {
      "version": "0.2.0",
      "date": "2022-07-09"
    },
    {
      "version": "0.2.1",
      "date": "2025-12-16"
    },
    {
      "version": "0.2.2",
      "date": "2026-03-28"
    },
    {
      "version": "0.2.3",
      "date": "2026-03-30"
    }
  ],
  "_exports": [
    "confidenceBands",
    "den2Q_qd",
    "globalFtest",
    "partialFtest",
    "quan2den_qd",
    "simulate_quantile_curves",
    "WARp",
    "warSim",
    "wass_R2",
    "wass_regress"
  ],
  "_datasets": [
    {
      "name": "strokeCTdensity",
      "title": "Stroke data: clinical, radiological scalar variables and density curves of the hematoma of 393 stroke patients",
      "object": "strokeCTdensity",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "confidenceBands",
      "title": "Confidence Bands for Wasserstein Regression",
      "topics": [
        "confidenceBands"
      ]
    },
    {
      "page": "den2Q_qd",
      "title": "convert density function to quantile and quantile density function",
      "topics": [
        "den2Q_qd"
      ]
    },
    {
      "page": "globalFtest",
      "title": "global F test for Wasserstein regression",
      "topics": [
        "globalFtest"
      ]
    },
    {
      "page": "partialFtest",
      "title": "partial F test for Wasserstein regression",
      "topics": [
        "partialFtest"
      ]
    },
    {
      "page": "predict.WARp",
      "title": "Prediction by WAR(p) models",
      "topics": [
        "predict.WARp"
      ]
    },
    {
      "page": "print.summary.WRI",
      "title": "print the summary of WRI object",
      "topics": [
        "print.summary.WRI"
      ]
    },
    {
      "page": "quan2den_qd",
      "title": "convert density function to quantile and quantile density function",
      "topics": [
        "quan2den_qd"
      ]
    },
    {
      "page": "simulate_quantile_curves",
      "title": "Simulate quantile curves",
      "topics": [
        "simulate_quantile_curves"
      ]
    },
    {
      "page": "strokeCTdensity",
      "title": "Stroke data: clinical, radiological scalar variables and density curves of the hematoma of 393 stroke patients",
      "topics": [
        "strokeCTdensity"
      ]
    },
    {
      "page": "summary.WRI",
      "title": "Summary Function of Wasserstein Regression Model",
      "topics": [
        "summary.WRI"
      ]
    },
    {
      "page": "WARp",
      "title": "WAR(p) models: estimation and forecast",
      "topics": [
        "WARp"
      ]
    },
    {
      "page": "warSim",
      "title": "Generate simulation data",
      "topics": [
        "warSim"
      ]
    },
    {
      "page": "wass_R2",
      "title": "Compute Wasserstein Coefficient of Determination",
      "topics": [
        "wass_R2"
      ]
    },
    {
      "page": "wass_regress",
      "title": "Perform Frechet Regression with the Wasserstein Distance",
      "topics": [
        "wass_regress"
      ]
    }
  ],
  "_readme": "https://github.com/cran/WRI/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "base64enc",
    "bslib",
    "cachem",
    "checkmate",
    "clarabel",
    "cli",
    "cluster",
    "colorspace",
    "cpp11",
    "CVXR",
    "data.table",
    "digest",
    "evaluate",
    "expm",
    "farver",
    "fastmap",
    "fdapace",
    "fontawesome",
    "foreign",
    "Formula",
    "fs",
    "ggplot2",
    "glue",
    "gmp",
    "gridExtra",
    "gtable",
    "highr",
    "highs",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "mvtnorm",
    "nnet",
    "numDeriv",
    "osqp",
    "polynom",
    "pracma",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "Rfast",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "scs",
    "slam",
    "stringi",
    "stringr",
    "tinytex",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml",
    "zigg"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "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": "WRI-vignette.Rmd",
      "filename": "WRI-vignette.html",
      "title": "Introduction to the WRI Package",
      "author": "Matthew Coleman, Lucy Liu and Alexander Petersen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Wasserstein Regression",
        "The effect of Sup grid vector when Ytype == 'quantile'",
        "Usage of wass_regress function",
        "Summary",
        "Wasserstein Coefficient of Determination, $R^2$",
        "Hypothesis Testing",
        "Global F-test",
        "Partial F-test",
        "Confidence Bands",
        "Usage of confidenceBands function",
        "Investigate the effect of hematoma volume"
      ],
      "created": "2020-11-23 07:00:06",
      "modified": "2020-11-23 07:00:06",
      "commits": 1
    }
  ],
  "_score": 3.2900346113625183,
  "_indexed": true,
  "_nocasepkg": "wri",
  "_universes": [
    "alexpete"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-09-19T08:45:23.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/4771c9945440eb0e2f53b0888bf7f50dae698472389c56ab48fb73aab2499af6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-09-19T08:46:09.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/32cb83750d155343450c3eb034bce01a14012dda8cb31f09455946ad784011e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-09-19T08:45:22.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/bcdabe0e0b3afc3eb78c366274ebe3c61c32178f565bf9ea04b97b1546c35a7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-09-19T08:45:25.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/08c2974df9e47b4be7a2ff182b0215eda826d78be57cecbf874c309b1c9354fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-09-19T08:45:21.000Z",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/854bc88ae96eaf8b690e24c7016ed4b45d2f1d25d58bff42a4f6ce8211e9c6c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-09-19T08:46:35.000Z",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/893a57ac4d8c9e567015f4e85a5266cea36b3ffffb3ac576c3520faff302e646",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-09-19T08:45:07.000Z",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/26dec3b866e1d2d04cc765effb703303d98922f417675222c3d7d7f82e3818c8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-09-19T08:46:32.000Z",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/3c44c25f5f646560b64816a7703d02b3ba1e725f893657fe3a9896f6433a0256",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.3",
      "date": "2026-09-19T08:46:02.000Z",
      "arch": "emscripten",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/6f7c35299409730540d6f6af394432d728373d41ade4aea6dca73ae8e2b28587",
      "status": "success",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-09-19T08:48:19.000Z",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/202ccc26d5c9c1419f1ff82c8567ed8353fb59bbfd8ecf0226fcb8646bf5a10b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-09-19T08:44:21.000Z",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/a0ce9d6b4cd08c7a02e660e1590877d26cbce8f50cc274d02e09c30746b80668",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-09-19T08:44:21.000Z",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/ce200f74ab14847e69028dccab79c5fa52b9dbdc5d091409fde45d97dc64060e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-09-19T08:47:44.000Z",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/842144fc1d217201b3a8f9fc755d6da09eeefa564623371096fe4053bc8c03c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-09-19T08:44:11.000Z",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/599aaaedd9d9c432e2ad0a5ac76c0954dad1fdcb0327e9017c5ae2e82b004ee3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexpete/actions/runs/35432568720"
    }
  ]
}