{
  "_id": "6a33c8773efcd9bda43b23bd",
  "Package": "SelfControlledCohort",
  "Type": "Package",
  "Title": "Self-Controlled Cohort Population-Level Estimation",
  "Version": "2.0.0",
  "Date": "2026-05-27",
  "Authors@R": "c(\nperson(\"Jamie\", \"Gilbert\", email = \"gilbert@ohdsi.org\", role = c(\"cre\", \"aut\"), comment = c(ORCID = \"0000-0003-2294-3459\")),\nperson(\"Martijn\", \"Schuemie\", email = \"schuemie@ohdsi.org\", role = c(\"aut\")),\nperson(\"Patrick\", \"Ryan\", role = c(\"aut\")),\nperson(\"Observational Health Data Science and Informatics\", role = c(\"cph\"))\n)",
  "Maintainer": "Jamie Gilbert <gilbert@ohdsi.org>",
  "Description": "Estimates incidence rate ratios by comparing time exposed\nwith time unexposed among an exposed cohort using\nself-controlled cohort methodology as described in Ryan et al.\n(2013) <doi:10.1002/pds.3457>. Functions used for empirical\ncalibration of effect estimates, confidence intervals, and\np-values are included to control for residual bias.",
  "URL": "https://github.com/OHDSI/SelfControlledCohort,\nhttps://ohdsi.github.io/SelfControlledCohort/",
  "BugReports": "https://github.com/OHDSI/SelfControlledCohort/issues",
  "Language": "en-US",
  "License": "Apache License 2.0",
  "RoxygenNote": "8.0.0",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Config/pak/sysreqs": "make default-jdk libicu-dev libxml2-dev libx11-dev\nxz-utils",
  "Repository": "https://ohdsi.r-universe.dev",
  "Date/Publication": "2026-06-17 15:10:03 UTC",
  "RemoteUrl": "https://github.com/ohdsi/selfcontrolledcohort",
  "RemoteRef": "HEAD",
  "RemoteSha": "173add540c06ba632dfee8a1f4a37b0327e875a9",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-18 10:24:43 UTC",
    "User": "root"
  },
  "Author": "Jamie Gilbert [cre, aut] (ORCID:\n<https://orcid.org/0000-0003-2294-3459>),\nMartijn Schuemie [aut],\nPatrick Ryan [aut],\nObservational Health Data Science and Informatics [cph]",
  "MD5sum": "d331606611e054b13f45d1a02d2f485e",
  "_user": "ohdsi",
  "_type": "src",
  "_file": "SelfControlledCohort_2.0.0.tar.gz",
  "_fileid": "9e5fc5524136083b53ec7422e24cb2ea346aa223a66e14dda49abb08e56ae167",
  "_filesize": 375766,
  "_sha256": "9e5fc5524136083b53ec7422e24cb2ea346aa223a66e14dda49abb08e56ae167",
  "_created": "2026-06-18T10:24:43.000Z",
  "_published": "2026-06-18T10:29:11.581Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82108186876,
      "time": 205,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7720749650"
    },
    {
      "job": 82108186790,
      "time": 216,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7720753408"
    },
    {
      "job": 82108186910,
      "time": 115,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7720721092"
    },
    {
      "job": 82108186838,
      "time": 138,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7720728529"
    },
    {
      "job": 82107437464,
      "time": 260,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7720678652"
    },
    {
      "job": 82108186777,
      "time": 147,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7720729889"
    },
    {
      "job": 82108186892,
      "time": 174,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7720738837"
    },
    {
      "job": 82108186854,
      "time": 137,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7720727440"
    },
    {
      "job": 82108186821,
      "time": 231,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7720758062"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ohdsi/selfcontrolledcohort",
  "_commit": {
    "id": "173add540c06ba632dfee8a1f4a37b0327e875a9",
    "author": "Jamie Gilbert <gilbert@ohdsi.org>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Release v2.0.0 (#28)\n\n* Compute risk window in permanent tables (#19)\n\n* Changes to store computed risk windows and intermediate reults in non-temporary table for later or additional processing.\r\n\r\n* Fixed doc errors\r\n\r\n* Moved computation of stats to new function\r\n\r\n* Day diff no longer +1\r\n\r\n* Day diff no longer +1\r\n\r\n* Missing doc file\r\n\r\n* Standardised output columns\r\n\r\n* modified how results are exported\r\n\r\n* Sql Bug fix\r\n\r\n* Table name bug fix\r\n\r\n* Including exposure start date in risk windows because it is not always the same as the risk window start.\r\n\r\n* Incorrect exposure schema computing risk windows\r\n\r\n* removed check on building manuals\r\n\r\n* Added Eunomia from remotes\r\n\r\n* Updated build script\r\n\r\n* Fixed dev tools test helper\r\n\r\n* Support use of Eunomia, new oracel temp schema, sql server fix\r\n\r\n* Docs updated\r\n\r\n* Docs updated\r\n\r\n* Docs updated\r\n\r\n* removed unused code, tidy of docs\r\n\r\n* Improved tests, fixed failing code and added tests on redshift with default sqlite testing\r\n\r\n- Allow calls to run with a DatabaseConnector `connection` object\r\n- No longer supports undocumented use of `connectionDetails$conn` for storing connections\r\n  when calling `runSelfControlledCohort`\r\n  - Added tests on sqlite for faster unit testing while working on development\r\n- Added tests on redshift dbms\r\n\r\n* pull request template\n\n* Batch read with DatabaseConnector::renderTranslateQueryApplyBatched (#20)\n\n* Handling of query processes in batches\n\n* Copyright year and date in DESCRIPTION. Re-added usage doc\n\n* Package html documentation\n\n* Added example on risk windows to docsumentation\n\n* Fix hades logo\n\n* Improved test coverage for scc risk window stats functions\n\n* Create R_CMD_check_main_weekly.yaml (#23)\n\n* risk window calculation listens to parameter\n\n* Version 2.0.0 (#25)\n\n* iniital starting point for new release\n\n* Tidy up and tests of calibration calls\n\n* Creation of results data model and associated tests\n\n* Creation of results data model and associated tests\n\n",
    "time": 1781709003
  },
  "_maintainer": {
    "name": "Jamie Gilbert",
    "email": "gilbert@ohdsi.org",
    "login": "azimov",
    "description": "Epidemiology Analytics and Open Source Software Development with a background in Computational Systems Biology",
    "uuid": 180659,
    "orcid": "0000-0003-2294-3459"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "DatabaseConnector",
      "version": ">= 5.0.0",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "SqlRender",
      "version": ">= 1.4.3",
      "role": "Imports"
    },
    {
      "package": "ParallelLogger",
      "role": "Imports"
    },
    {
      "package": "rateratio.test",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "EmpiricalCalibration",
      "role": "Imports"
    },
    {
      "package": "ResultModelManager",
      "role": "Imports"
    },
    {
      "package": "Andromeda",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "Eunomia",
      "role": "Suggests"
    },
    {
      "package": "duckdb",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "R.utils",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    },
    {
      "package": "DT",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    },
    {
      "package": "shinycssloaders",
      "role": "Suggests"
    },
    {
      "package": "plotly",
      "role": "Suggests"
    },
    {
      "package": "reactable",
      "role": "Suggests"
    },
    {
      "package": "shinyWidgets",
      "role": "Suggests"
    }
  ],
  "_owner": "ohdsi",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-25",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v2.0.0",
      "date": "2026-06-17"
    }
  ],
  "_topics": [
    "hades",
    "openjdk"
  ],
  "_stars": 8,
  "_contributors": [
    {
      "user": "azimov",
      "count": 61,
      "uuid": 180659
    },
    {
      "user": "schuemie",
      "count": 53,
      "uuid": 6713328
    },
    {
      "user": "msuchard",
      "count": 5,
      "uuid": 149039
    },
    {
      "user": "ablack3",
      "count": 1,
      "uuid": 10227522
    }
  ],
  "_userbio": {
    "uuid": 6570077,
    "type": "organization",
    "name": "Observational Health Data Sciences and Informatics",
    "followers": 1029
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SelfControlledCohort"
  },
  "_devurl": "https://github.com/ohdsi/selfcontrolledcohort",
  "_pkgdown": "https://ohdsi.github.io/SelfControlledCohort/",
  "_searchresults": 23,
  "_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/SelfControlledCohort.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ohdsi/selfcontrolledcohort",
  "_realowner": "ohdsi",
  "_cranurl": true,
  "_releases": [
    {
      "version": "2.0.0",
      "date": "2026-06-17"
    }
  ],
  "_exports": [
    "computeEase",
    "computeMdrrForRateRatio",
    "createExposureOutcome",
    "createResultsDataModel",
    "createRunSelfControlledCohortArgs",
    "createSccAnalysis",
    "createSelfControlledCohortModuleSpecifications",
    "execute",
    "getDataMigrator",
    "getDefaultDiagnosticThresholds",
    "getDefaultExportManager",
    "getDiagnosticsSummary",
    "getModuleInfo",
    "getResultsDataModelSpecifications",
    "getResultsFolders",
    "getSccRiskWindowStats",
    "loadExposureOutcomeList",
    "loadSccAnalysisList",
    "migrateDataModel",
    "runSccAnalyses",
    "runSccDiagnostics",
    "runSccRiskWindows",
    "runSelfControlledCohort",
    "saveExposureOutcomeList",
    "saveSccAnalysisList",
    "uploadResults"
  ],
  "_help": [
    {
      "page": "computeEase",
      "title": "Compute Expected Absolute Systematic Error (EASE)",
      "topics": [
        "computeEase"
      ]
    },
    {
      "page": "computeMdrrForRateRatio",
      "title": "Compute Minimum Detectable Relative Risk (MDRR) for rate ratio",
      "topics": [
        "computeMdrrForRateRatio"
      ]
    },
    {
      "page": "createExposureOutcome",
      "title": "Create exposure-outcome combinations.",
      "topics": [
        "createExposureOutcome"
      ]
    },
    {
      "page": "createResultsDataModel",
      "title": "Create the results data model tables on a database server.",
      "topics": [
        "createResultsDataModel"
      ]
    },
    {
      "page": "createRunSelfControlledCohortArgs",
      "title": "Create a parameter object for the function runSelfControlledCohort",
      "topics": [
        "createRunSelfControlledCohortArgs"
      ]
    },
    {
      "page": "createSccAnalysis",
      "title": "Create a SelfControlledCohort analysis specification",
      "topics": [
        "createSccAnalysis"
      ]
    },
    {
      "page": "createSelfControlledCohortModuleSpecifications",
      "title": "Create Self-Controlled Cohort Module Specifications",
      "topics": [
        "createSelfControlledCohortModuleSpecifications"
      ]
    },
    {
      "page": "execute",
      "title": "Execute Self-Controlled Cohort Analyses for Strategus",
      "topics": [
        "execute"
      ]
    },
    {
      "page": "getDataMigrator",
      "title": "Get database migrations instance",
      "topics": [
        "getDataMigrator"
      ]
    },
    {
      "page": "getDefaultDiagnosticThresholds",
      "title": "Get default diagnostic thresholds",
      "topics": [
        "getDefaultDiagnosticThresholds"
      ]
    },
    {
      "page": "getDefaultExportManager",
      "title": "Get Default export manager",
      "topics": [
        "getDefaultExportManager"
      ]
    },
    {
      "page": "getDiagnosticsSummary",
      "title": "Get diagnostics summary",
      "topics": [
        "getDiagnosticsSummary"
      ]
    },
    {
      "page": "getModuleInfo",
      "title": "Get module information",
      "topics": [
        "getModuleInfo"
      ]
    },
    {
      "page": "getResultsDataModelSpecifications",
      "title": "Get specifications for CohortMethod results data model",
      "topics": [
        "getResultsDataModelSpecifications"
      ]
    },
    {
      "page": "getResultsFolders",
      "title": "Get results folders for an analysis specification",
      "topics": [
        "getResultsFolders"
      ]
    },
    {
      "page": "getSccRiskWindowStats",
      "title": "Get Self-Controlled Cohort Risk Window Statistics",
      "topics": [
        "getSccRiskWindowStats"
      ]
    },
    {
      "page": "loadExposureOutcomeList",
      "title": "Load a list of exposureOutcome from file",
      "topics": [
        "loadExposureOutcomeList"
      ]
    },
    {
      "page": "loadsccAnalysisList",
      "title": "Load a list of sccAnalysis from file",
      "topics": [
        "loadSccAnalysisList"
      ]
    },
    {
      "page": "migrateDataModel",
      "title": "Migrate Data model",
      "topics": [
        "migrateDataModel"
      ]
    },
    {
      "page": "runSccAnalyses",
      "title": "Run a list of analyses",
      "topics": [
        "runSccAnalyses"
      ]
    },
    {
      "page": "runSccDiagnostics",
      "title": "Run Self-Controlled Cohort Diagnostics",
      "topics": [
        "runSccDiagnostics"
      ]
    },
    {
      "page": "runSccRiskWindows",
      "title": "Run Self-Controlled Cohort Risk Windows",
      "topics": [
        "runSccRiskWindows"
      ]
    },
    {
      "page": "runSelfControlledCohort",
      "title": "Run self-controlled cohort",
      "topics": [
        "runSelfControlledCohort"
      ]
    },
    {
      "page": "saveExposureOutcomeList",
      "title": "Save a list of exposureOutcome to file",
      "topics": [
        "saveExposureOutcomeList"
      ]
    },
    {
      "page": "saveSccAnalysisList",
      "title": "Save a list of sccAnalysis to file",
      "topics": [
        "saveSccAnalysisList"
      ]
    },
    {
      "page": "uploadResults",
      "title": "Upload results to the database server.",
      "topics": [
        "uploadResults"
      ]
    }
  ],
  "_readme": "https://github.com/ohdsi/selfcontrolledcohort/raw/HEAD/README.md",
  "_rundeps": [
    "Andromeda",
    "backports",
    "bit",
    "bit64",
    "blob",
    "checkmate",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "DatabaseConnector",
    "DBI",
    "dbplyr",
    "digest",
    "dplyr",
    "duckdb",
    "EmpiricalCalibration",
    "farver",
    "fastmap",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "hms",
    "isoband",
    "jsonlite",
    "labeling",
    "later",
    "lifecycle",
    "lubridate",
    "magrittr",
    "memuse",
    "ParallelLogger",
    "pillar",
    "pkgconfig",
    "pool",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "rateratio.test",
    "RColorBrewer",
    "Rcpp",
    "readr",
    "ResultModelManager",
    "rJava",
    "rlang",
    "rstudioapi",
    "S7",
    "scales",
    "snow",
    "SqlRender",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "triebeard",
    "tzdb",
    "urltools",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "xml2",
    "zip"
  ],
  "_sysdeps": [
    {
      "shlib": "libjvm",
      "package": "openjdk-21-jre-headless",
      "headers": "openjdk-21-jre-headless",
      "source": "openjdk",
      "version": "21.0.11+10-1~24.04.2",
      "name": "openjdk",
      "homepage": "https://openjdk.java.net/",
      "description": "OpenJDK Java runtime, using Hotspot JIT (headless)"
    }
  ],
  "_vignettes": [
    {
      "source": "StudyDiagnostics.Rmd",
      "filename": "StudyDiagnostics.html",
      "title": "Study Diagnostics",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Minimum Detectable Relative Risk (MDRR)",
        "What it checks",
        "Method",
        "Interpretation",
        "Example",
        "Role in blinding",
        "Pre-Exposure Gain",
        "Why it matters",
        "Event-Dependent Observation",
        "Expected Absolute Systematic Error (EASE)",
        "When it runs",
        "Tiered Blinding",
        "Running Diagnostics",
        "Customizing thresholds",
        "Selecting specific diagnostics",
        "Inspecting failures"
      ],
      "created": "2026-06-17 15:10:03",
      "modified": "2026-06-17 15:10:03",
      "commits": 1
    },
    {
      "source": "UsingSelfControlledCohort.Rmd",
      "filename": "UsingSelfControlledCohort.html",
      "title": "Using SelfControlledCohort",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup and Data",
        "Running a Basic Analysis",
        "Understanding Risk Windows",
        "Using Custom Cohorts",
        "Diagnostics and Tiered Blinding",
        "Empirical Calibration",
        "Multi-Analysis Workflow",
        "Working with the Results Database"
      ],
      "created": "2021-04-05 14:25:26",
      "modified": "2026-06-17 15:10:03",
      "commits": 2
    }
  ],
  "_score": 5.7419390777291985,
  "_indexed": true,
  "_nocasepkg": "selfcontrolledcohort",
  "_universes": [
    "ohdsi",
    "azimov"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-06-18T10:27:36.000Z",
      "distro": "noble",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "504299fadb4005e17ebec29bebfb6247bed7a64d63de5fbce196da04f65dc591",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-06-18T10:27:41.000Z",
      "distro": "noble",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "24a7a1a3c3fca580a7d0968ba6281a8460a19204753b003a7c310bb88a73c23e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-06-18T10:26:25.000Z",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "9201fc448e0b166bfd1a646b6a86d8b4739b254460ed386109882862bec6873a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-06-18T10:26:42.000Z",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "ea3ed65bb5f6488fb9072f450a8b84e7b27c828cd36edbba35ef8d2faa030ccf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.0",
      "date": "2026-06-18T10:27:34.000Z",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "254df575a1f671256259d97addcb20d4090495e4e4a8bdc8a1a1e043e37c0a2d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-06-18T10:26:23.000Z",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "8fe8d2536b1864f728e6cb1c5ebd1f2064e10f668384053facd0742e8387fbcf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-06-18T10:26:06.000Z",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "d66b4161a882c0f8efe0c9f8530f979ce006b9287dc9194a236fc7050857b150",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-06-18T10:27:16.000Z",
      "commit": "173add540c06ba632dfee8a1f4a37b0327e875a9",
      "fileid": "0c552771fa5e029d546cc54efd393ba3c0aa2e827561f98bae0c804f8e2ca8bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ohdsi/actions/runs/27752855237"
    }
  ]
}