# Nowcasting in a real-time analysis pipeline to estimate the effective reproduction number with missing data and reporting delay

**URL:** <https://community.epinowcast.org/t/nowcasting-in-a-real-time-analysis-pipeline-to-estimate-the-effective-reproduction-number-with-missing-data-and-reporting-delay/43>\
**Category:** Publicity\
**Tags:** simulated-case-study, effective-reproducti, missing-data\
**Created:** [24 August 2022 10:01 UTC](https://community.epinowcast.org/t/nowcasting-in-a-real-time-analysis-pipeline-to-estimate-the-effective-reproduction-number-with-missing-data-and-reporting-delay/43 "2022-08-24T10:01:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samabbott](https://dub1.discourse-cdn.com/flex005/user_avatar/community.epinowcast.org/samabbott/32/5_2.png) [@samabbott](https://community.epinowcast.org/u/samabbott)\
**Post date:** [24 August 2022 10:01 UTC](https://community.epinowcast.org/t/nowcasting-in-a-real-time-analysis-pipeline-to-estimate-the-effective-reproduction-number-with-missing-data-and-reporting-delay/43/1 "2022-08-24T10:01:38Z")

</div>

We (Sebastian Funk and I) recently wrote up a small case study using simulated data looking at an outbreak setting where partially reported onsets are used to estimate the underlying effective reproduction number. Sharing here as may be of interest and as it makes use of `epinowcast`.

The reasons for making this were:

- It provides guidance for practitioners who are currently handling this kind of data (for example the current Monkeypox outbreak).
- It provides a comparison with our other tools (i.e `EpiNow2`).
- It provides a baseline for practitioners to compare other tools against those we discuss.
- It highlights limitations in these tools and provides direction for future development (most of the limitations highlighted have WIP PRs to address them in `epinowcast`).

Abstract:

> In this report we make use of [epinowcast](https://epiforecasts.io/epinowcast/), a nowcasting package under development and designed from the ground up around nowcasting with the aim of replacing [EpiNow2](https://epiforecasts.io/EpiNow2/) for real-time usage. We first explore the data using tools from `epinowcast` alongside others. We then nowcast the latest available data, visualise our results, and discuss potential options for improving performance on real-world data. As a check of our approach we construct some retrospective data, nowcast it, and compare our nowcast to the latest available data. We then extract the estimated delay distribution and compare it to the underlying distribution used to generate the data, the empirical distribution, and the distribution estimated using simpler methods. Finally, we show how the output from `epinowcast` may be used in other surveillance packages such as `EpiNow2`. Throughout this case study we discuss potential issues with the approaches taken, and highlight areas for futher work. For more on `epinowcast` and it’s planned development roadmap see [the package documentation](https://epiforecasts.io/epinowcast/). An [alternative approach](https://github.com/epiforecasts/nowcasting.example/blob/d4505d2576caf5fb07a630150a3ac6b4505e216c/inst/reports/epinow2.md) to the problem using `EpiNow2`, suffering from some limitations that `epinowcast` is aiming to address, is also available in this repository.

Report:

> <https://github.com/epiforecasts/nowcasting.example/blob/d4505d2576caf5fb07a630150a3ac6b4505e216c/inst/reports/epinowcast.md>
