Learn R Programming

FeatureExtraction

FeatureExtraction is part of HADES.

Introduction

An R package for generating features (covariates) for a cohort using data in the Common Data Model.

Features

  • Takes a cohort as input.
  • Generates baseline features for that cohort.
  • Default covariates include all drugs, diagnoses, procedures, as well as age, comorbidity indexes, etc.
  • Support for creating custom covariates.
  • Generate paper-ready summary table of select population characteristics.

Technology

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

System Requirements

Requires R (version 3.2.2 or higher). Installation on Windows requires RTools. FeatureExtraction require Java.

Getting Started

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

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

install.packages("drat")
drat::addRepo("OHDSI")
install.packages("FeatureExtraction")

User Documentation

The documentation website can be found at https://ohdsi.github.io/FeatureExtraction/. PDF versions of the vignettes and package manual are here:

These vignettes are also available in Korean:

Support

  • Developer questions/comments/feedback: OHDSI Forum
  • We use the GitHub issue tracker for all bugs/issues/enhancements

Contributing

Read here how you can contribute to this package.

License

FeatureExtraction is licensed under Apache License 2.0

Development

FeatureExtraction is being developed in R Studio.

Development status

Ready for use

Acknowledgements

  • This project is supported in part through the National Science Foundation grant IIS 1251151.

Copy Link

Version

Install

install.packages('FeatureExtraction')

Monthly Downloads

493

Version

3.7.2

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 18th, 2024

Functions in FeatureExtraction (3.7.2)

createCohortBasedCovariateSettings

Create settings for covariates based on other cohorts
convertPrespecSettingsToDetailedSettings

Convert prespecified covariate settings into detailed covariate settings
createDetailedCovariateSettings

Create detailed covariate settings
createCovariateSettings

Create covariate settings
CovariateData-class

Covariate Data
saveCovariateData

Save the covariate data to folder
createDetailedTemporalCovariateSettings

Create detailed temporal covariate settings
computeStandardizedDifference

Compute standardized difference of mean for all covariates.
FeatureExtraction-package

FeatureExtraction: Generating Features for a Cohort
createDefaultCovariateSettings

Create default covariate settings
createTemporalSequenceCovariateSettings

Create covariate settings
createEmptyCovariateData

Creates an empty covariate data object
createTable1

Create a table 1
getDbCohortAttrCovariatesData

Getcovariate information from the database through the cohort_attribute table
.createLooCovariateSettings

Get covariate settings
createAnalysisDetails

Create detailed covariate settings
isAggregatedCovariateData

Check whether covariate data is aggregated
.getDbLooCovariateData

Get covariate information from the database
createTable1CovariateSettings

Create covariate settings for a table 1
getDbCohortBasedCovariatesData

Get covariate information from the database based on other cohorts
getDefaultTable1Specifications

Get the default table 1 specifications
createTemporalCovariateSettings

Create covariate settings
getDbDefaultCovariateData

Get default covariate information from the database
createDefaultTemporalCovariateSettings

Create default covariate settings
isCovariateData

Check whether an object is a CovariateData object
getDbCovariateData

Get covariate information from the database
isTemporalCovariateData

Check whether covariate data is temporal
tidyCovariateData

Tidy covariate data
filterByCohortDefinitionId

Filter covariates by cohort definition IDs
loadCovariateData

Load the covariate data from a folder
filterByRowId

Filter covariates by row ID
createCohortBasedTemporalCovariateSettings

Create settings for temporal covariates based on other cohorts
aggregateCovariates

Aggregate covariate data
createCohortAttrCovariateSettings

Create cohort attribute covariate settings