-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
90 lines (65 loc) · 2.91 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# aedseo <a href="https://ssi-dk.github.io/aedseo/"><img src="man/figures/logo.png" align="right" height="139" alt="aedseo website" /></a>
<!-- badges: start -->
[![R-CMD-check](https://github.com/ssi-dk/aedseo/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ssi-dk/aedseo/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/ssi-dk/aedseo/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ssi-dk/aedseo?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/aedseo)](https://CRAN.R-project.org/package=aedseo)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
<!-- badges: end -->
## 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
``` r
# Install aedseo from CRAN
install.packages("aedseo")
```
### Development vestion
You can install the development version of `aedseo` from [GitHub](https://github.com/) with:
``` r
# 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.
```r
# Load the package
library(aedseo)
# Create a aedseo_tsd object from your data
tsd_data <- tsd(
observation = 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.
``` r
# 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.