{"id":23082628,"url":"https://github.com/chstock/dtcompair","last_synced_at":"2025-08-16T00:31:31.904Z","repository":{"id":77875463,"uuid":"594523175","full_name":"chstock/DTComPair","owner":"chstock","description":"Comparison of Binary Diagnostic Tests in a Paired Study Design","archived":false,"fork":false,"pushed_at":"2024-10-07T13:16:05.000Z","size":4232,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-17T22:14:02.155Z","etag":null,"topics":["clinical-epidemiology","comparative-analysis","cran","diagnosis","diagnostic-accuracy-studies","diagnostic-likelihood-ratio","diagnostic-tests","medicine","predictive-value","r","r-package","sensitivity","specificity"],"latest_commit_sha":null,"homepage":"https://chstock.github.io/DTComPair/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chstock.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-28T20:09:29.000Z","updated_at":"2025-03-24T02:59:27.000Z","dependencies_parsed_at":"2024-04-21T18:55:10.374Z","dependency_job_id":"0a813fd1-0ec3-4def-95f9-9dc469952dfb","html_url":"https://github.com/chstock/DTComPair","commit_stats":{"total_commits":76,"total_committers":3,"mean_commits":"25.333333333333332","dds":"0.052631578947368474","last_synced_commit":"3a80a5ec7918b862dfe148e27833fc669f647f93"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chstock/DTComPair","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chstock%2FDTComPair","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chstock%2FDTComPair/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chstock%2FDTComPair/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chstock%2FDTComPair/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chstock","download_url":"https://codeload.github.com/chstock/DTComPair/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chstock%2FDTComPair/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270651073,"owners_count":24622443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clinical-epidemiology","comparative-analysis","cran","diagnosis","diagnostic-accuracy-studies","diagnostic-likelihood-ratio","diagnostic-tests","medicine","predictive-value","r","r-package","sensitivity","specificity"],"created_at":"2024-12-16T14:56:09.929Z","updated_at":"2025-08-16T00:31:31.477Z","avatar_url":"https://github.com/chstock.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# DTComPair \u003ca href=\"https://chstock.github.io/DTComPair/\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"139\" alt=\"DTComPair website\" /\u003e\u003c/a\u003e\n\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![CRAN status](https://www.r-pkg.org/badges/version/DTComPair)](https://CRAN.R-project.org/package=DTComPair)\n[![](http://cranlogs.r-pkg.org/badges/last-month/DTComPair)](https://cran.r-project.org/package=DTComPair)\n[![](http://cranlogs.r-pkg.org/badges/grand-total/DTComPair)](https://cran.r-project.org/package=DTComPair)\n\u003c!-- badges: end --\u003e\n\nComparison of the accuracy of two binary diagnostic tests in a \"paired\" study design, i.e. when each test is applied to each subject in the study.\n\n\n## Installation\n\n**CRAN**\n\nYou can install the current stable version from CRAN with:\n\n```{r cran-installation, eval = FALSE}\ninstall.packages(\"DTComPair\")\n```\n\n**GitHub**\n\nYou can install the current development version from GitHub with:\n\n```{r gh-installation, eval = FALSE}\nif (!require(\"remotes\")) {install.packages(\"remotes\")}\nremotes::install_github(\"chstock/DTComPair\")\n```\n\n## Scope\n\nDiagnostic accuracy measures that can be computed and compared are sensitivity, specificity, positive and negative predictive values, and positive and negative diagnostic likelihood ratios.  \n\n\n## Getting Started\n\n**Determine the accuracy of one diagnostic test**\n\n```{r getting-started1}\nlibrary(DTComPair)\ndata(Paired1) # Hypothetical study data\na1 \u003c- tab.1test(d=d, y=y1, data=Paired1)\nprint(a1)\na1 |\u003e acc.1test(method.ci = \"waldci\") # default Wald intervals\na1 |\u003e acc.1test(method.ci = \"exactci\") # Clopper-Pearson intervals\n```\n\n**Compare the accuracy of two diagnostic tests**\n\n***Compute accuracy measures***\n```{r getting-started2}\nb1 \u003c- tab.paired(d = d, y1 = y1, y2 = y2, data = Paired1)\nprint(b1)\nb1 |\u003e acc.paired(method.ci = \"scoreci\") # Wilson intervals\n```\n\n***Compare predictive values***\n\nTest based on weighted generalized score statistic:\n```{r getting-started3a}\npv.wgs(b1)  \n```\n\n\nEstimation and test of relative predictive values:\n```{r getting-started3b}\npv.rpv(b1)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchstock%2Fdtcompair","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchstock%2Fdtcompair","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchstock%2Fdtcompair/lists"}