CohortMethod

Build Status codecov.io CRAN_Status_Badge CRAN_Status_Badge

CohortMethod is part of HADES.

Introduction

CohortMethod is an R package for performing new-user cohort studies in an observational database in the OMOP Common Data Model.

Features

Screenshots

Propensity (preference score) distribution Covariate balance plot

Technology

CohortMethod is an R package, with some functions implemented in C++.

System Requirements

Requires R (version 4.0.0 or higher). Libraries used in CohortMethod require Java.

Installation

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

  2. To install the latest stable version, install from CRAN:

    install.packages("CohortMethod")
  3. Optionally, run this to check if CohortMethod was correctly installed:

    connectionDetails <- createConnectionDetails(dbms="postgresql",
                                                 server="my_server.org",
                                                 user = "joe",
                                                 password = "super_secret")
    
    checkCmInstallation(connectionDetails)

    Where dbms, server, user, and password need to be changed to the settings for your database environment. Type

    ?createConnectionDetails

    for more details on how to configure your database connection.

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

CohortMethod is licensed under Apache License 2.0

Development

CohortMethod is being developed in R Studio.

Development status

CohortMethod is actively being used in several studies and is ready for use.

Acknowledgements