aedseo aedseo website

R-CMD-check Codecov test coverage CRAN status Lifecycle: stable


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.


# Install aedseo from CRAN

Development vestion

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

# install.packages("devtools")

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

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

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


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

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


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