-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
81 lines (55 loc) · 2.48 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
---
output: github_document
---
```{r setup, echo = FALSE, message=FALSE, results='hide'}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.align = "center",
fig.path = "man/figures/README-",
echo = TRUE,
fig.width = 8,
fig.height = 6
)
```
<!-- badges: start -->
[](https://CRAN.R-project.org/package=i2extras)
[](https://app.codecov.io/gh/reconverse/i2extras?branch=master)
[](https://www.reconverse.org/lifecycle.html#maturing)
[](https://github.com/reconverse/i2extras/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
# Scope
*i2extras* adds additional functionality to the
[incidence2](https://github.com/reconverse/incidence2) package.
# What does it do?
The main features of the package include:
- `fit_curve()` and `growth_rate()`: fit a trend (poisson / negative
binomial) to an `incidence2` object and calculate the associated growth
rate.
- `add_rolling_average()`: add a rolling average to an `incidence2` object.
- `bootstrap()`: generates a bootstrapped `incidence2` object by re-sampling,
with replacement, the original dates of events.
- `find_peak()`: locates the peak time of the epicurve.
- `estimate_peak()`: uses bootstrap to estimate the peak time (and related
confidence interval) of a partially observed outbreak.
## Installing the package
You can install the released version of {i2extras} from [CRAN](https://cran.r-project.org/) with:
```{r, eval=FALSE}
install.packages("i2extras")
```
::: {.pkgdown-devel}
The development version of {i2extras} can be installed from GitHub with:
```{r, eval=FALSE}
remotes::install_github("reconverse/i2extras", build_vignettes = TRUE)
```
:::
# Resources
## Vignettes
An overview of *i2extras* is provided in the included vignettes:
* `vignette("peak_estimation", package = "i2extras")`
* `vignette("fitting_epicurves", package = "i2extras")`
## Getting help online
Bug reports and feature requests should be posted on *github* using the
[*issue* system](https://github.com/reconverse/i2extras/issues). All other
questions should be posted on the **RECON** slack channel see
<https://www.repidemicsconsortium.org/forum/> for details on how to join.