CohortMethod is part of HADES.
CohortMethod is an R package for performing new-user cohort studies in an observational database in the OMOP Common Data Model.
CohortMethod is an R package, with some functions implemented in C++.
Requires R (version 3.6.0 or higher). Installation on Windows requires RTools. Libraries used in CohortMethod require Java.
See the instructions here for configuring your R environment, including RTools and Java.
In R, use the following commands to download and install CohortMethod:
r
install.packages("remotes")
remotes::install_github("ohdsi/CohortMethod")
```r 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
r
?createConnectionDetails
for more details on how to configure your database connection.
Documentation can be found on the package website.
PDF versions of the documentation are also available:
Read here how you can contribute to this package.
CohortMethod is licensed under Apache License 2.0
CohortMethod is being developed in R Studio.
CohortMethod is actively being used in several studies and is ready for use.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.