-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: "Using `epidist` to estimate..." | ||
description: "A more detailed guide to using the `epidist` R package" | ||
output: | ||
bookdown::html_document2: | ||
fig_caption: yes | ||
code_folding: show | ||
number_sections: true | ||
pkgdown: | ||
as_is: true | ||
# csl: https://raw.githubusercontent.com/citation-style-language/styles/master/apa-numeric-superscript-brackets.csl | ||
link-citations: true | ||
vignette: > | ||
%\VignetteIndexEntry{Getting in depth with epidist} | ||
%\VignetteEngine{knitr::rmarkdown} | ||
%\VignetteEncoding{UTF-8} | ||
--- | ||
|
||
```{r setup, include=FALSE} | ||
# exclude compile warnings from cmdstanr | ||
knitr::opts_chunk$set( | ||
fig.path = "figures/epidist-", | ||
cache = TRUE, | ||
collapse = TRUE, | ||
comment = "#>", | ||
message = FALSE, | ||
warning = FALSE, | ||
error = FALSE | ||
) | ||
``` | ||
|
||
```{r load-requirements} | ||
library(epidist) | ||
library(data.table) | ||
library(purrr) | ||
library(ggplot2) | ||
``` | ||
|
||
# Data preparation | ||
|
||
* Load the Ebola data, explain the columns and some of the context | ||
* Clean it up into the right format | ||
* Visualise the delay data. Perhaps any other relevant features -- we don't have geocoordinates right | ||
|
||
# Model fitting | ||
|
||
* Fit the lognormal model | ||
* Fit the gamma model | ||
* Other things here? Convergence checking? | ||
|
||
# Post-processing | ||
|
||
* Extract posterior predictions (of something) from both models -- posterior predictive checking? | ||
* Compare the models. Give suggestion of which is a better fit | ||
* Translate fitted distribution to probability mass function | ||
|
||
## Bibliography {-} | ||