Kala is an R package developed within the OHDSI framework that allows you to generate and explore temporal features for one or more target cohorts. By leveraging the FeatureExtraction package and its temporalCovariateSettings, Kala aggregates those features into intuitive time-window comparisons and (optionally) creates time-series analyses, including data decomposition, statistical summaries, and visualizations.
(Kala is not part of OHDSI HADES.)
Researchers often need to compare features (e.g., comorbidities, drug exposures, or other clinical observations) across different time windows before or after a key event. Kala streamlines this process by:
- Taking one or more target cohorts (already instantiated in your OMOP CDM).
- Generating features across configurable time windows using temporalCovariateSettings.
- Producing tabular and graphical summaries of the features, allowing you to compare and interpret changes across time.
- (Optionally) Creating time-series analyses—both regular and irregular time windows—providing decomposition and statistical summaries for trends, seasonality, and more.
The end result is a cohesive set of reports that simplify understanding of temporal patterns in your data.
- Time-Window-Based Feature Construction: Leverages FeatureExtraction to construct features for specified temporal windows (e.g., -365 to -1 days, 0 to 30 days, etc.).
- Intuitive Reporting: Outputs simple comparison tables with each time window as a column and features as rows, making it easier to identify trends and differences.
- Time-Series Visualization: Creates time-series plots (with or without interruptions) for your selected features, offering decompositions and highlighting patterns that might not be apparent in standard tables.
The Kala package is an R package.
R
To install the latest development version, install from GitHub:
remotes::install_github("OHDSI/Kala")
Kala will be submitted to Cran when ready.
- Vignette: Simple Time Series Analysis Using Kala
- Package manual: Kala manual
- Developer questions/comments/feedback: OHDSI Forum
- We use the GitHub issue tracker for all bugs/issues/enhancements
Kala is licensed under Apache License 2.0
Kala is being developed in R Studio and follows best practices in R package development. The project is currently in beta testing, and contributions are welcome.
Beta testing