Cohort Incidence Analysis for the OMOP Common Data Model

Provides functionality for performing cohort incidence analyses against data stored in the OMOP Common Data Model (CDM). The package generates database-specific SQL, executes analyses across supported database platforms, and returns standardized incidence estimates using configurable time-at-risk, stratification, and cohort definitions. It is intended to support reproducible observational research within the OHDSI analytics framework.


CohortIncidence

Build Status codecov.io

CohortIncidence is part of HADES.

Introduction

An R package and Java library for calculating incidence rates on the OMOP CDM.

Features

  • Handles specifications of T-O-TAR-Subgroup pairs, and performs the calculation on the cross-product of the elements.
  • Specify clean windows to account for immortal time after outcome.
  • Allows multiple exposure and multiple outcomes per person accounting for time at risk and clean window paramaters.

Technology

CohortIncidence is an R package which wraps a Java library that implements most of the functions of the package.

System Requirements

Requires R and Java.

Getting Started

R package

  1. See the instructions here for configuring your R environment, including Java.

  2. In R, use the following commands to download and install CohortIncidence:

install.packages("remotes")
library(remotes)
install_github("ohdsi/CohortIncidence") 

Java library

The Java library is hosted in an OHDSI Nexus repo, so you only need to add the repository and dependnecy to your maven.xml file in order to use it in your own Java project.

  1. First add the OHDSI Nexus repository so that maven can find and download the artifact automatically:
  <repositories>
    <repository>
      <id>ohdsi</id>
      <name>repo.ohdsi.org</name>
      <url>https://repo.ohdsi.org/nexus/content/groups/public</url>
    </repository>
  </repositories>

2: Include the CohortIncidence dependency in your pom.xml

<dependency>
	<groupId>org.ohdsi.sql</groupId>
	<artifactId>CohortIncidence</artifactId>
	<version>{latest version}</version>
</dependency>

User Documentation

Documentation can be found on the package website.

PDF versions of the documentation are also available:

Support

Contributing

Read here how you can contribute to this package.

License

CohortIncidence is licensed under Apache License 2.0

Development

CohortIncidence is being developed in R Studio.

Development status

Released, Under Active Development

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("CohortIncidence")

4.2.0 by Christopher Knoll, a month ago


https://ohdsi.github.io/CohortIncidence/


Report a bug at https://github.com/OHDSI/CohortIncidence/issues


Browse source code at https://github.com/cran/CohortIncidence


Authors: Christopher Knoll [aut, cre]


Documentation:   PDF Manual  


Apache License 2.0 license


Imports rlang, rJava, checkmate, jsonlite, SqlRender

Depends on DatabaseConnector

Suggests testthat, knitr, rmarkdown, withr, readr, Eunomia, duckdb, R6

System requirements: Java (>= 8)


Suggested by Characterization.


See at CRAN