Learn R Programming

diseasystore

Overview

The diseasystore package provides feature stores implemented in R specifically designed for serve disease data for epidemic preparedness.

What makes a diseasystore special, is that features are time-versioned via {SCDB} and can be automatically coupled and stratified within the diseasystore package. This allows for a high degree of flexibility and reproducibility in the handling of disease data.

The package forms the data-backbone of the {diseasy} package.

Handling of diverse data sources

Different data sources are handled by individual diseasystores which each facilitate access to the relevant disease data for the given data source.

Data for different diseases will typically be structured in different ways. The diseasystore package currently implements the Google Health COVID-19 Open Repository with more diseasystores on the way.

The diseasystore package is designed to handle both individual-level data (typically protected) and semi-aggregated data (typically publicly available).

If the data is at the individual-level, the feature store is fully dynamic and can adapt to (virtually) any stratification that the user specifies. If the data conversely is semi-aggregated, the data can only be stratified at the levels of the semi-aggregation (or at higher levels).

Installation

# Install diseasystore from CRAN:
install.packages("diseasystore")

# Alternatively, install the development version from github:
# install.packages("devtools")
devtools::install_github("ssi-dk/diseasystore")

Usage

For basic usage examples, see vignette("diseasystore").

Copy Link

Version

Install

install.packages('diseasystore')

Monthly Downloads

197

Version

0.3.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Rasmus Skytte Randløv

Last Published

February 28th, 2025

Functions in diseasystore (0.3.1)

age_labels

Provides sortable labels for age groups
DiseasystoreEcdcRespiratoryViruses

feature store handler of EU-ECDC Respiratory viruses features
DiseasystoreSimulist

feature store handler of synthetic simulist features
aggregators

Feature aggregators
available_diseasystores

Detect available diseasystores
DiseasystoreGoogleCovid19

feature store handler of Google Health COVID-19 Open Data features
age_on_date

Compute the age (in years) on a given date
FeatureHandler

FeatureHandler
add_years

Backend-dependent time interval (in years)
DiseasystoreBase

diseasystore base handler
to_diseasystore_case

Transform case definition to PascalCase
%.%

Existence aware pick operator
get_diseasystore

Get the diseasystore for the case definition
test_diseasystore

Test a given diseasy store
diseasystore_exists

Check for the existence of a diseasystore for the case definition
drop_diseasystore

Drop feature stores from DB
diseasystore-package

diseasystore: Feature Stores for the 'diseasy' Framework
source_conn_helpers

File path helper for different source_conn
diseasyoption

Helper function to get options related to diseasy
simulist_data

simulist_data