{
  "_id": "6a195dadacfb0bcc41de4c1b",
  "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-05-29 09:30:32 UTC",
    "User": "root"
  },
  "Maintainer": "Alexander Petersen <petersen@stat.byu.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-03-30 09:51:29 UTC",
  "RemoteUrl": "https://github.com/cran/WRI",
  "RemoteRef": "HEAD",
  "RemoteSha": "3cef791c5d1725806d68dc241971e3010ec420b5",
  "MD5sum": "7aa8152e46ca7e64e329662d7f7133a0",
  "_user": "cran",
  "_type": "src",
  "_file": "WRI_0.2.3.tar.gz",
  "_fileid": "f0aacd270b54cf00a24ff8b6d6dbdf10b3d9495152b565e151f230b5d0e1b4de",
  "_filesize": 759547,
  "_sha256": "f0aacd270b54cf00a24ff8b6d6dbdf10b3d9495152b565e151f230b5d0e1b4de",
  "_created": "2026-05-29T09:30:32.000Z",
  "_published": "2026-05-29T09:34:37.416Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78474891746,
      "time": 201,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287621064"
    },
    {
      "job": 78474891727,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287611023"
    },
    {
      "job": 78474891679,
      "time": 169,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287611435"
    },
    {
      "job": 78474891701,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287609910"
    },
    {
      "job": 78474264031,
      "time": 241,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287557896"
    },
    {
      "job": 78474891631,
      "time": 167,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287610540"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26629410412",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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": false,
  "_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": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 562,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/WRI"
  },
  "_searchresults": 9,
  "_topics": [
    "openblas",
    "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/WRI.html",
    "manual.pdf"
  ],
  "_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.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "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.1760912590556813,
  "_indexed": false,
  "_nocasepkg": "wri",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://alexpete.r-universe.dev/WRI",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-29T09:33:41.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "0e4808d83ac47e70abe6ad1cdd930d51e0356289f2296bdc1c33b052a57fd0e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629410412"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-29T09:33:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "2937cb1972c157a7703033528bc0606f41fb6d32dd9d936851356c7b13326cbb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629410412"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-29T09:33:05.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "ce963034b04a12da1afb5737a1254a9a677f511265489afbca5302b6938a60a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629410412"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-29T09:33:01.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "924dd4638943d59afd9dd8db20b6aefcd2188d721249e95430d31897355b4d12",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629410412"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.3",
      "date": "2026-05-29T09:33:32.000Z",
      "arch": "emscripten",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "a4afc82aea52e21ea4896516ce8ed381cfb8cc552c37cec08789b56e749ee7ed",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26629410412"
    }
  ]
}