Learn R Programming

⚠️There's a newer version (0.3.0) of this package.Take me there.

aedseo

Description

The Automated and Early Detection of Seasonal Epidemic Onset (aedseo) Package provides a powerful tool for automating the early detection of seasonal epidemic onsets in time series data. It offers the ability to estimate growth rates for consecutive time intervals and calculate the Sum of Cases (SoC) within those intervals. This package is particularly useful for epidemiologists, public health professionals, and researchers seeking to identify and respond to seasonal epidemics in a timely fashion.

Installation

# Install aedseo from CRAN
install.packages("aedseo")

Development vestion

You can install the development version of aedseo from GitHub with:

# install.packages("devtools")
devtools::install_github("ssi-dk/aedseo")

Getting started

To quickly get started with aedseo, follow these steps:

  1. Install the package using the code provided above.
  2. Load the package with library(aedseo).
  3. Create a time series data object (aedseo_tsd) from your data using the tsd() function.
  4. Apply the aedseo() function to estimate growth rates and detect seasonal epidemic onsets.
# Load the package
library(aedseo)

# Create a aedseo_tsd object from your data
tsd_data <- tsd(
  observed = c(100, 120, 150, 180, 220, 270),
  time = as.Date(c(
    "2023-01-01",
    "2023-01-02",
    "2023-01-03",
    "2023-01-04",
    "2023-01-05",
    "2023-01-06")
    ),
    time_interval = "day"
  )

# Detect seasonal epidemic onsets
aedseo_results <- aedseo(tsd = tsd_data, k = 3, level = 0.95, family = "poisson")

Vignette

For a more detailed introduction to the workflow of this package, see the introductory vignette.

# After installing the package
vignette("aedseo_introduction", package = "aedseo")

Contributing

We welcome contributions to the aedseo package. Feel free to open issues, submit pull requests, or provide feedback to help us improve.

Copy Link

Version

Install

install.packages('aedseo')

Monthly Downloads

228

Version

0.1.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Lasse Engbo Christiansen

Last Published

November 27th, 2023

Functions in aedseo (0.1.2)

fit_growth_rate

Fit a growth rate model to time series observations.
summary.aedseo

Summary method for aedseo objects
aedseo-package

aedseo: Automated and Early Detection of Seasonal Epidemic Onset
plot.aedseo_tsd

Create a complete 'ggplot' appropriate to a particular data type
tsd

Create a S3 aedseo_tsd (time-series data) object from observed data and corresponding dates.
aedseo

Automated and Early Detection of Seasonal Epidemic Onset
autoplot

Create a complete 'ggplot' appropriate to a particular data type
predict.aedseo

Predict Growth Rates for Future Time Steps
epi_calendar

Determine Epidemiological Season
%>%

Pipe operator