{
  "_id": "6ad7edbed556c3a3418a7c27",
  "Package": "hpsreg",
  "Type": "Package",
  "Title": "Regression for Hierarchically Ordered Clinical Outcomes via\nPairwise Comparisons (Bradley-Terry-Davidson Model)",
  "Version": "1.0.0",
  "Authors@R": "person(\"Ravi\", \"Varadhan\", role = c(\"aut\", \"cre\"), email = \"ravi.varadhan@jhu.edu\")",
  "Description": "Provides regression for hierarchically ordered clinical\noutcomes via pairwise comparisons, using a covariate-adjusted\nDavidson (Bradley-Terry with ties) model with U-statistic\nsandwich standard errors. A hierarchy of outcomes (binary,\nordinal, continuous, and time-to-event, with eligibility guards\nand tie margins) is defined; all pairs of subjects are scored\nlexicographically; and the resulting win / loss / tie data are\nanalysed. Unadjusted win statistics (net benefit, win ratio,\nwin odds), diagnostics, and a worked example based on outcomes\nafter allogeneic stem cell transplant are also provided. The\ncomputational engine is written in 'C++' using 'Rcpp' and\n'RcppEigen'.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "SystemRequirements": "OpenMP (optional)",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-20 22:34:58 UTC",
    "User": "root"
  },
  "Author": "Ravi Varadhan [aut, cre]",
  "Maintainer": "Ravi Varadhan <ravi.varadhan@jhu.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-20 17:50:14 UTC",
  "RemoteUrl": "https://github.com/cran/hpsreg",
  "RemoteRef": "HEAD",
  "RemoteSha": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
  "_user": "cran",
  "_type": "src",
  "_file": "hpsreg_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/ff652d7a646a1c04531d0ad4385842118177a002e297c10de2e5089e22c2b9d8",
  "_filesize": 321958,
  "_sha256": "ff652d7a646a1c04531d0ad4385842118177a002e297c10de2e5089e22c2b9d8",
  "_expires": "2027-01-28T22:39:56.000Z",
  "_created": "2026-10-20T22:34:58.000Z",
  "_published": "2026-10-20T22:39:58.752Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 118925798152,
      "time": 149,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12305095721"
    },
    {
      "job": 118925798168,
      "time": 190,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12305490530"
    },
    {
      "job": 118925798045,
      "time": 119,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12305595090"
    },
    {
      "job": 118925798098,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12305800039"
    },
    {
      "job": 118924267359,
      "time": 224,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12303809804"
    },
    {
      "job": 118925798077,
      "time": 99,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12304114754"
    },
    {
      "job": 118925798162,
      "time": 246,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12304938234"
    },
    {
      "job": 118925798081,
      "time": 179,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12305080813"
    },
    {
      "job": 118925798205,
      "time": 203,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12305115763"
    },
    {
      "job": 118925798063,
      "time": 127,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12305765011"
    }
  ],
  "_upstream": "https://github.com/cran/hpsreg",
  "_commit": {
    "id": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
    "author": "Ravi Varadhan <ravi.varadhan@jhu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1792518614
  },
  "_maintainer": {
    "name": "Ravi Varadhan",
    "email": "ravi.varadhan@jhu.edu",
    "login": "rvaradhan",
    "description": "",
    "uuid": 1282368
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "gnm",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-43",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-10-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "rvaradhan",
      "count": 1,
      "uuid": 1282368
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hpsreg"
  },
  "_searchresults": 0,
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hpsreg.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-10-20"
    }
  ],
  "_exports": [
    "btd",
    "btd_calibration",
    "btd_control",
    "btd_pair_probs",
    "hierarchy",
    "hps_beta",
    "hps_cox_grfs",
    "hps_hierarchy",
    "lvl_binary",
    "lvl_continuous",
    "lvl_custom",
    "lvl_group",
    "lvl_ordinal",
    "lvl_tte",
    "openmp_threads",
    "resolution",
    "sample_pairs",
    "score_pairs",
    "simulate_hps",
    "win_stats"
  ],
  "_help": [
    {
      "page": "btd",
      "title": "Covariate-adjusted analysis of hierarchical pairwise outcomes",
      "topics": [
        "btd",
        "summary.btd"
      ]
    },
    {
      "page": "btd_calibration",
      "title": "Calibration of the pairwise model",
      "topics": [
        "btd_calibration"
      ]
    },
    {
      "page": "btd_control",
      "title": "Control parameters for the Bradley-Terry-Davidson fit",
      "topics": [
        "btd_control"
      ]
    },
    {
      "page": "hb_levels",
      "title": "Outcome levels for a hierarchy",
      "topics": [
        "hb_levels",
        "lvl_binary",
        "lvl_continuous",
        "lvl_custom",
        "lvl_ordinal",
        "lvl_tte"
      ]
    },
    {
      "page": "hierarchy",
      "title": "Define a hierarchy of outcomes",
      "topics": [
        "hierarchy"
      ]
    },
    {
      "page": "hps_beta",
      "title": "Data-generating coefficients for the transplant example",
      "topics": [
        "hps_beta"
      ]
    },
    {
      "page": "hps_cox_grfs",
      "title": "Composite m-GRFS Cox model (comparator for the example)",
      "topics": [
        "hps_cox_grfs"
      ]
    },
    {
      "page": "hps_hierarchy",
      "title": "Hierarchy for the stem cell transplant example",
      "topics": [
        "hps_hierarchy"
      ]
    },
    {
      "page": "lvl_group",
      "title": "Group several levels into one reporting level",
      "topics": [
        "lvl_group"
      ]
    },
    {
      "page": "openmp_threads",
      "title": "OpenMP availability",
      "topics": [
        "openmp_threads"
      ]
    },
    {
      "page": "plot.btd_calibration",
      "title": "Plot a calibration table",
      "topics": [
        "plot.btd_calibration"
      ]
    },
    {
      "page": "predict.btd",
      "title": "Predicted latent score and pair probabilities",
      "topics": [
        "btd_pair_probs",
        "predict.btd"
      ]
    },
    {
      "page": "resolution",
      "title": "Where are pairs decided?",
      "topics": [
        "resolution"
      ]
    },
    {
      "page": "sample_pairs",
      "title": "Sample a random set of pairs",
      "topics": [
        "sample_pairs"
      ]
    },
    {
      "page": "score_pairs",
      "title": "Score all pairs of subjects under a hierarchy",
      "topics": [
        "score_pairs"
      ]
    },
    {
      "page": "simulate_hps",
      "title": "Simulate a transplant cohort",
      "topics": [
        "simulate_hps"
      ]
    },
    {
      "page": "win_stats",
      "title": "Win statistics for two groups",
      "topics": [
        "win_stats"
      ]
    }
  ],
  "_readme": "https://github.com/cran/hpsreg/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp",
    "RcppEigen"
  ],
  "_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"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "hpsreg.Rmd",
      "filename": "hpsreg.html",
      "title": "Getting started with hpsreg",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What this package does",
        "Example data",
        "Design a hierarchy",
        "Censoring in time-to-event levels",
        "Score the pairs",
        "Unadjusted win statistics",
        "Fit the model",
        "Interpreting delta",
        "Standard errors",
        "Prediction and calibration",
        "Large cohorts",
        "Threads",
        "Citation",
        "Where to go next"
      ],
      "created": "2026-10-20 17:50:14",
      "modified": "2026-10-20 17:50:14",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "hpsreg",
  "_universes": [
    "cran",
    "rvaradhan"
  ],
  "_indexurl": "https://rvaradhan.r-universe.dev/hpsreg",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-20T22:37:28.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/bd3665ac5642986408c3c5e57340f89b0c6f5629c2bef5560970f036083097b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-20T22:37:54.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/50b16776cdc2ef30aed8f7f8dba8f783fcc41fc47afa7a235eb21ea75e26555e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-20T22:37:00.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/25d1d0a55ad60ecebfac531bb665b591678d4afb2d18af6c24fb210c20dffa1a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-20T22:37:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/d7c3b280e7c1bfa9b01214062a307fb7057ad210707f523a6ec698f88d45e66a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-20T22:37:02.000Z",
      "arch": "emscripten",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/24495d661a4dec116eccdb277f5a51ec8a874f341fbda9f9e42857a1ad72e94b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-20T22:38:42.000Z",
      "arch": "aarch64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/319c04983fc1fb79c8c2fe29c28c6b69b35c2c3f07f4cc7e24c651629924fac7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-20T22:36:33.000Z",
      "arch": "x86_64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/439d0b68ffc65828171343cdb0a9794aeef77998738fefbc33feab2c349c0594",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-20T22:38:04.000Z",
      "arch": "aarch64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/e388312b176e3007b90c3c1aeb5b62bf0d6ad3582cb8c0d0d8ccf578018da295",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-20T22:36:47.000Z",
      "arch": "x86_64",
      "commit": "5d1a6e325d2ba1b25c1a3f96299fd002ff60dc3d",
      "fileid": "https://r2.ropensci.org/d284474b090c9beb22a0a1e4bed3610ffe57e167d99cb9533c8d80959bab01cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39508722999"
    }
  ]
}