Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #16 from salauer/master
updates to COVID-19 data and shiny app
- Loading branch information
Showing
11 changed files
with
152 additions
and
110 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
BIN
+29.8 KB
data/boot_lnorm_params_covid.rda
Binary file not shown.
BIN
-32.3 KB
data/boot_lnorm_params_ncov.rda
Binary file not shown.
BIN
+143 KB
data/kde_covid.rda
Binary file not shown.
BIN
-152 KB
data/kde_ncov.rda
Binary file not shown.
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,15 @@ | ||
## fit gamma incubation period distribution to COVID-19 data | ||
## Nicholas Reich and Stephen A Lauer | ||
## started: February 2020 | ||
|
||
source('inst/analysis-code/inc-per-mcmc.R') | ||
library(dplyr) | ||
data(boot_lnorm_params_covid) | ||
|
||
## calculate bandwidths for plotting | ||
hscv_covid_p50 <- get_robust_bandwidths(boot_lnorm_params_covid, | ||
cols=c("median", "p95")) | ||
|
||
## calculate KDE for confidence region | ||
kde_covid <- fit_kde(boot_lnorm_params_covid, H=hscv_covid_p50, max_size=1000) | ||
save(kde_covid, file='data/kde_covid.rda') |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.