{
  "_id": "6a1f17c0b401979e7341eba5",
  "Package": "WR",
  "Type": "Package",
  "Title": "Win Ratio Analysis of Composite Time-to-Event Outcomes",
  "Version": "1.0.1",
  "Author": "Lu Mao and Tuo Wang",
  "Maintainer": "Lu Mao <lmao@biostat.wisc.edu>",
  "URL": "https://sites.google.com/view/lmaowisc/,\nhttps://lmaowisc.github.io/WR/",
  "Description": "Implements various win ratio methodologies for composite\nendpoints of death and non-fatal events, including the\n(stratified) proportional win-fractions (PW) regression models\n(Mao and Wang, 2020 <doi:10.1111/biom.13382>), (stratified)\ntwo-sample tests with possibly recurrent nonfatal event, and\nsample size calculation for standard win ratio test (Mao et\nal., 2021 <doi:10.1111/biom.13501>).",
  "License": "CC BY 4.0",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://lmaowisc.r-universe.dev",
  "Date/Publication": "2025-01-06 10:21:24 UTC",
  "RemoteUrl": "https://github.com/lmaowisc/wr",
  "RemoteRef": "HEAD",
  "RemoteSha": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 05:54:33 UTC",
    "User": "root"
  },
  "MD5sum": "539c57bc216f9002b74b17769ea66b41",
  "_user": "lmaowisc",
  "_type": "src",
  "_file": "WR_1.0.1.tar.gz",
  "_fileid": "f866f27775bd409568ab1d9c74b412dccac91a32d7aba5326b7bbf71f01696d9",
  "_filesize": 816141,
  "_sha256": "f866f27775bd409568ab1d9c74b412dccac91a32d7aba5326b7bbf71f01696d9",
  "_created": "2026-05-17T05:54:33.000Z",
  "_published": "2026-06-02T17:49:52.355Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79136025034,
      "time": 192,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7039803040"
    },
    {
      "job": 79136025532,
      "time": 149,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7039798489"
    },
    {
      "job": 79136025227,
      "time": 116,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7039794946"
    },
    {
      "job": 79136025216,
      "time": 128,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7039796243"
    },
    {
      "job": 79136024432,
      "time": 249,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7039782290"
    },
    {
      "job": 79136024528,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7365592158"
    },
    {
      "job": 79136025218,
      "time": 99,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7039793194"
    },
    {
      "job": 79136025128,
      "time": 131,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7039796642"
    },
    {
      "job": 79136025341,
      "time": 100,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7039793436"
    }
  ],
  "_buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/lmaowisc/wr",
  "_commit": {
    "id": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
    "author": "lmaowisc <lmao@biostat.wisc.edu>",
    "committer": "lmaowisc <lmao@biostat.wisc.edu>",
    "message": "update predict()\n",
    "time": 1736158884
  },
  "_maintainer": {
    "name": "Lu Mao",
    "email": "lmao@biostat.wisc.edu",
    "login": "lmaowisc",
    "description": "",
    "uuid": 54419673
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "cubature",
      "role": "Imports"
    },
    {
      "package": "gumbel",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "lmaowisc",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "lmaowisc",
      "count": 30,
      "uuid": 54419673
    }
  ],
  "_userbio": {
    "uuid": 54419673,
    "type": "user",
    "name": "Lu Mao"
  },
  "_downloads": {
    "count": 231,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/WR"
  },
  "_mentions": 3,
  "_devurl": "https://github.com/lmaowisc/wr",
  "_pkgdown": "https://lmaowisc.github.io/WR/",
  "_searchresults": 52,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/WR.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lmaowisc/wr",
  "_realowner": "lmaowisc",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2019-10-06"
    },
    {
      "version": "0.1.1",
      "date": "2020-01-27"
    },
    {
      "version": "1.0",
      "date": "2021-11-26"
    }
  ],
  "_exports": [
    "base",
    "gumbel.est",
    "pwreg",
    "pwreg1",
    "score.proc",
    "scores.pwreg1",
    "WRrec",
    "WRSS"
  ],
  "_datasets": [
    {
      "name": "gbc",
      "title": "A subset of the German Breast Cancer study data",
      "object": "gbc",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "time",
        "status",
        "hormone",
        "age",
        "menopause",
        "size",
        "grade",
        "nodes",
        "prog_recp",
        "estrg_recp"
      ],
      "rows": 985,
      "table": true,
      "tojson": true
    },
    {
      "name": "hfaction_cpx9",
      "title": "A subset of the HF-ACTION study data on high-risk non-ischemic heart failure patients",
      "object": "hfaction_cpx9",
      "class": [
        "data.frame"
      ],
      "fields": [
        "patid",
        "time",
        "status",
        "trt_ab",
        "age60"
      ],
      "rows": 1448,
      "table": true,
      "tojson": true
    },
    {
      "name": "non_ischemic",
      "title": "A subset of the HF-ACTION study data on non-ischemic heart failure patients with full covariate measurement.",
      "object": "non_ischemic",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "time",
        "status",
        "trt_ab",
        "age",
        "sex",
        "Black.vs.White",
        "Other.vs.White",
        "bmi",
        "bipllvef",
        "hyperten",
        "COPD",
        "diabetes",
        "acei",
        "betab",
        "smokecurr"
      ],
      "rows": 751,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "base",
      "title": "Compute the baseline parameters needed for sample size calculation for standard win ratio test",
      "topics": [
        "base"
      ]
    },
    {
      "page": "gbc",
      "title": "A subset of the German Breast Cancer study data",
      "topics": [
        "gbc"
      ]
    },
    {
      "page": "gumbel.est",
      "title": "Estimate baseline parameters in the Gumbel-Hougaard model for sample size calculation using pilot data",
      "topics": [
        "gumbel.est"
      ]
    },
    {
      "page": "hfaction_cpx9",
      "title": "A subset of the HF-ACTION study data on high-risk non-ischemic heart failure patients",
      "topics": [
        "hfaction_cpx9"
      ]
    },
    {
      "page": "non_ischemic",
      "title": "A subset of the HF-ACTION study data on non-ischemic heart failure patients with full covariate measurement.",
      "topics": [
        "non_ischemic"
      ]
    },
    {
      "page": "plot.pwreg.score",
      "title": "Plot the standardized score processes",
      "topics": [
        "plot.pwreg.score"
      ]
    },
    {
      "page": "print.pwreg",
      "title": "Print the results of the proportional win-fractions regression model",
      "topics": [
        "print.pwreg"
      ]
    },
    {
      "page": "print.pwreg.score",
      "title": "Print information on the content of the pwreg.score object",
      "topics": [
        "print.pwreg.score"
      ]
    },
    {
      "page": "print.pwreg1",
      "title": "Print model information for a proportional win-fractions regression",
      "topics": [
        "print.pwreg1"
      ]
    },
    {
      "page": "print.WRrec",
      "title": "Print the results of the two-sample recurrent-event win ratio analysis",
      "topics": [
        "print.WRrec"
      ]
    },
    {
      "page": "pwreg",
      "title": "Fit a standard proportional win-fractions (PW) regression model",
      "topics": [
        "pwreg"
      ]
    },
    {
      "page": "pwreg1",
      "title": "A test version of pwreg",
      "topics": [
        "pwreg1"
      ]
    },
    {
      "page": "score.proc",
      "title": "Computes the standardized score processes",
      "topics": [
        "score.proc"
      ]
    },
    {
      "page": "WRrec",
      "title": "Generalized win ratio tests",
      "topics": [
        "WRrec"
      ]
    },
    {
      "page": "WRSS",
      "title": "Compute the sample size for standard win ratio test",
      "topics": [
        "WRSS"
      ]
    }
  ],
  "_pkglogo": "https://github.com/lmaowisc/wr/raw/HEAD/logo.png",
  "_readme": "https://github.com/lmaowisc/wr/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "cubature",
    "dplyr",
    "generics",
    "glue",
    "gumbel",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "Rcpp",
    "rlang",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "PW_reg.Rmd",
      "filename": "PW_reg.html",
      "title": "Proportional win-fractions (PW) regression of composite endpoints of death and nonfatal event",
      "author": "Lu Mao (lmao@biostat.wisc.edu) & Tuo Wang",
      "engine": "knitr::rmarkdown",
      "headings": [
        "MODEL SPECIFICATION",
        "BASIC SYNTAX",
        "AN EXAMPLE WITH THE HF-ACTION TRIAL",
        "References"
      ],
      "created": "2024-12-07 07:55:07",
      "modified": "2024-12-07 07:55:07",
      "commits": 1
    },
    {
      "source": "WR_sample_size.Rmd",
      "filename": "WR_sample_size.html",
      "title": "Sample size calculation for standard win ratio test",
      "author": "Lu Mao (lmao@biostat.wisc.edu)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "INTRODUCTION",
        "Data and the test",
        "Methods for sample size calculation",
        "BASIC SYNTAX",
        "A REAL EXAMPLE",
        "Pilot data description",
        "Use pilot data to estimate baseline parameters",
        "Using WRSS() to compute sample size",
        "References"
      ],
      "created": "2024-12-07 07:55:07",
      "modified": "2024-12-07 07:55:07",
      "commits": 1
    },
    {
      "source": "PW_stratify_reg.Rmd",
      "filename": "PW_stratify_reg.html",
      "title": "Stratified proportional win-fractions (PW) regression of composite endpoints of death and nonfatal event",
      "author": "Tuo Wang & Lu Mao (lmao@biostat.wisc.edu)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "MODEL & INFERENCE",
        "Outcome data and modeling target",
        "Model specification",
        "Number of strata and inference procedure",
        "BASIC SYNTAX",
        "AN EXAMPLE WITH THE GERMAN BREAST CANCER STUDY",
        "Data preparation",
        "Stratification by menopause status",
        "Stratification by age",
        "References"
      ],
      "created": "2024-12-07 07:55:07",
      "modified": "2024-12-07 07:55:07",
      "commits": 1
    },
    {
      "source": "WR_test_rec.Rmd",
      "filename": "WR_test_rec.html",
      "title": "Two-sample win ratio tests of possibly recurrent event and death",
      "author": "Lu Mao (lmao@biostat.wisc.edu)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "INTRODUCTION",
        "Data",
        "General framework for hypotheses and tests",
        "Choice of win function",
        "BASIC SYNTAX",
        "AN EXAMPLE WITH THE HF-ACTION TRIAL",
        "Data description",
        "Win ratio tests on recurrent event and death",
        "Comparison with standard win ratio",
        "References"
      ],
      "created": "2024-12-07 07:55:07",
      "modified": "2024-12-07 07:55:07",
      "commits": 1
    }
  ],
  "_score": 5.494154594018443,
  "_indexed": true,
  "_nocasepkg": "wr",
  "_universes": [
    "lmaowisc"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-17T05:57:17.000Z",
      "distro": "noble",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "f4a3be7933dfda2221ab7bec6c7e2c6d4dd390de35fbba9e9050eac60a0c540c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-17T05:56:39.000Z",
      "distro": "noble",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "9d0fc35d5b87eb565d6e18eaa3a2ec9d8e9383b849409ee010bc3f428771342d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-17T05:56:17.000Z",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "6bc4b23b29cd535868b5019c212c941cabeb78c1720bae42e36524583c72ef87",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-17T05:56:26.000Z",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "15d110f5b93a1ac05a71eb1d775bb61232b936131b41ccf2cf192f5a0d679d64",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-17T05:55:43.000Z",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "f95330ba9e0b74e02cd94bf00565a84778ac3d1db5c14ec400f836124c2c8f3d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-17T05:56:20.000Z",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "b74981eb00ae63f5b8a401b793e096e2d6d38296b92ec629811ee80a9cef926d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-17T05:55:44.000Z",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "85a25f6a844c45bf758b1dba366bffbc495a2cea8932f7d42f7e759a144a69df",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-06-02T17:49:38.000Z",
      "commit": "6ad64b52aa428e9b7f225b5208a63c85bc28218d",
      "fileid": "d39129ce4d14d85ad5bbc51453411973fde53e3491c27d7eb09c510f519e339b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lmaowisc/actions/runs/25982795451"
    }
  ]
}