https://github.com/epiforecasts/nowcasting.example
Estimate reporting delays and use them for nowcasting
https://github.com/epiforecasts/nowcasting.example
Last synced: 12 months ago
JSON representation
Estimate reporting delays and use them for nowcasting
- Host: GitHub
- URL: https://github.com/epiforecasts/nowcasting.example
- Owner: epiforecasts
- License: mit
- Created: 2022-07-15T10:25:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T18:14:48.000Z (almost 2 years ago)
- Last Synced: 2024-09-07T19:33:14.736Z (almost 2 years ago)
- Language: R
- Size: 3.85 MB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Nowcasting examples
This repository contains two example approaches to nowcasting, one using the [EpiNow2](https://epiforecasts.io/EpiNow2/) package, and one using the [epinowcast](https://epiforecasts.io/epinowcast/) package which is currently being developed to eventually replace `EpiNow2` for real-time applications.
## Installation
You can install the utility functions contained in this repo with
```{r install, eval = FALSE}
# install.packages("devtools")
devtools::install_github("epiforecasts/nowcasting.example")
```
## Render the `EpiNow2` report
To render the report, run
``` r
rmarkdown::render("inst/reports/epinow2.Rmd")
```
Afterwards the report can be viewed in
`inst/reports/epinow2.html`. A [rendered version](inst/reports/epinow2.md) of the report is also available in the repository.
## Render the `epinowcast` report
To render the report, run
``` r
rmarkdown::render("inst/reports/epinowcast.Rmd")
```
Afterwards the report can be viewed in
`inst/reports/epinowcast.html`. A [rendered version](inst/reports/epinowcast.md) of the report is also available in the repository.
## Create mock dataset
A mock dataset can be created using
```{r data, eval = FALSE}
source("inst/scripts/create_mock_dataset.r")
```