{
  "_id": "6accdd02a14063b82c3a9fdd",
  "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-10-12 13:08:08 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",
  "_user": "cran",
  "_type": "src",
  "_file": "WRI_0.2.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/0fbdd5b60e8e0f7de3f0a668bec1215846765ac4f79d48c93e41f997ea8c89cc",
  "_filesize": 760408,
  "_sha256": "0fbdd5b60e8e0f7de3f0a668bec1215846765ac4f79d48c93e41f997ea8c89cc",
  "_expires": "2027-01-20T13:13:36.000Z",
  "_created": "2026-10-12T13:08:08.000Z",
  "_published": "2026-10-12T13:13:38.170Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114825951805,
      "time": 129,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11749078311"
    },
    {
      "job": 114825951847,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11748364191"
    },
    {
      "job": 114825951968,
      "time": 128,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11748704243"
    },
    {
      "job": 114825951881,
      "time": 134,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11748823406"
    },
    {
      "job": 114824239799,
      "time": 262,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11749357785"
    },
    {
      "job": 114825951586,
      "time": 170,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11748329588"
    },
    {
      "job": 114825951792,
      "time": 270,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11748509656"
    },
    {
      "job": 114825951973,
      "time": 166,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11749516785"
    },
    {
      "job": 114825951995,
      "time": 222,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11748379845"
    },
    {
      "job": 114825951900,
      "time": 154,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11748733870"
    }
  ],
  "_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": 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",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 397,
    "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": 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-10-12T13:10:16.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/94cd4e655f533990aff438d1573f29da47002f957a555b845a8cb81ddf55d148",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-10-12T13:10:36.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/16cd8c6b653f7506e57086da57dd98eeae0bdf6d057720479a140fcdf27831d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-10-12T13:10:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/71b3b68842b988d0a30ff4106dfc742430755dc22e7ad2d9a1c715404d12c004",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-10-12T13:10:23.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/f6628aa8b7d17bf1f94cfe1b90f74e2fc2025e363b4a65aa5391c5d697d06814",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.3",
      "date": "2026-10-12T13:11:10.000Z",
      "arch": "emscripten",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/bfea10e4988373a30c816df59d6d9093255ac34e95bde9b04eef6827a9e2fbbc",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-10-12T13:12:07.000Z",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/51b87afe076024356c7732ea8e02d00ad1006063c944ceaf60c9b7cee19b06fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-10-12T13:09:36.000Z",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/1fcf43cbde9d5481171faff2e336bc7aab9a0940a2f02dbc9e9a62291ac36c5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-10-12T13:11:25.000Z",
      "arch": "aarch64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/5b5e5a9beea8845e08f0fd42421dbf06d0e3d815dc84277c8ff0c37eb9ea0759",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-10-12T13:09:38.000Z",
      "arch": "x86_64",
      "commit": "3cef791c5d1725806d68dc241971e3010ec420b5",
      "fileid": "https://r2.ropensci.org/40efc4ebbb930dad88a4d90b2a68f1ae8b00de14218e41e286eba974012c2884",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38253089884"
    }
  ]
}