From 9fd931aeeba4ab7bdede1a625f64e7024c2b55aa Mon Sep 17 00:00:00 2001 From: Naeem Model Date: Sun, 9 Jun 2024 16:01:51 +0000 Subject: Update Shiny app - Remove template/logic for single data entry - Change 'Add estimators' to 'About estimators'; adding estimators and viewing estimates are now done in the same tab - Swap rows and columns in estimates table (estimators as row names, datasets as column names) - Add a separate column for the serial interval to the estimates table - Add plots for daily and weekly data using the Plotly library - Remove italics from the subscript in all occurences of 'R_0' - Fix code/text formatting --- inst/app/templates/content/about.html | 21 +++++----- inst/app/templates/content/data.html | 1 - inst/app/templates/content/data/enter-data.html | 17 ++++---- .../content/data/enter-data/bulk-entry.html | 48 ---------------------- .../templates/content/data/enter-data/entry.html | 48 ---------------------- .../content/data/enter-data/load-samples.html | 2 + .../content/data/enter-data/manual-entry.html | 11 +++++ .../content/data/enter-data/required-format.html | 25 +++++++++++ .../content/data/enter-data/single-entry.html | 39 ------------------ .../content/data/enter-data/upload-data.html | 12 ++++++ inst/app/templates/content/data/view-data.html | 22 ++-------- .../content/data/view-data/data-plots.html | 7 ++++ .../content/data/view-data/data-table.html | 18 ++++++++ inst/app/templates/content/estimation.html | 13 ++++++ .../content/estimation/about-estimators.html | 31 ++++++++++++++ .../content/estimation/about-estimators/id.html | 5 +++ .../content/estimation/about-estimators/idea.html | 1 + .../content/estimation/about-estimators/panel.html | 14 +++++++ .../estimation/about-estimators/seq_bayes.html | 1 + .../content/estimation/about-estimators/wp.html | 1 + .../templates/content/estimation/estimates.html | 3 ++ .../estimation/estimates/add-estimators.html | 16 ++++++++ .../estimation/estimates/add-estimators/id.html | 1 + .../estimation/estimates/add-estimators/idea.html | 1 + .../estimation/estimates/add-estimators/mu.html | 22 ++++++++++ .../estimates/add-estimators/parameters.html | 7 ++++ .../estimates/add-estimators/seq_bayes.html | 22 ++++++++++ .../estimation/estimates/add-estimators/wp.html | 39 ++++++++++++++++++ .../estimation/estimates/estimates-table.html | 19 +++++++++ inst/app/templates/content/estimators.html | 13 ------ .../content/estimators/add-estimators.html | 19 --------- .../estimators/add-estimators/components/mu.html | 20 --------- .../add-estimators/components/panel.html | 21 ---------- .../estimators/add-estimators/descriptions/id.html | 1 - .../add-estimators/descriptions/idea.html | 1 - .../estimators/add-estimators/descriptions/mu.html | 7 ---- .../add-estimators/descriptions/seq_bayes.html | 1 - .../estimators/add-estimators/descriptions/wp.html | 1 - .../estimators/add-estimators/parameters/id.html | 1 - .../estimators/add-estimators/parameters/idea.html | 1 - .../estimators/add-estimators/parameters/mu.html | 1 - .../add-estimators/parameters/seq_bayes.html | 22 ---------- .../estimators/add-estimators/parameters/wp.html | 39 ------------------ .../content/estimators/view-estimates.html | 21 ---------- inst/app/templates/content/help.html | 10 +++-- .../app/templates/content/help/example-help-1.html | 1 - .../app/templates/content/help/example-help-2.html | 1 - .../templates/content/help/serial-interval.html | 19 +++------ 48 files changed, 305 insertions(+), 362 deletions(-) delete mode 100644 inst/app/templates/content/data/enter-data/bulk-entry.html delete mode 100644 inst/app/templates/content/data/enter-data/entry.html create mode 100644 inst/app/templates/content/data/enter-data/manual-entry.html create mode 100644 inst/app/templates/content/data/enter-data/required-format.html delete mode 100644 inst/app/templates/content/data/enter-data/single-entry.html create mode 100644 inst/app/templates/content/data/enter-data/upload-data.html create mode 100644 inst/app/templates/content/data/view-data/data-plots.html create mode 100644 inst/app/templates/content/data/view-data/data-table.html create mode 100644 inst/app/templates/content/estimation.html create mode 100644 inst/app/templates/content/estimation/about-estimators.html create mode 100644 inst/app/templates/content/estimation/about-estimators/id.html create mode 100644 inst/app/templates/content/estimation/about-estimators/idea.html create mode 100644 inst/app/templates/content/estimation/about-estimators/panel.html create mode 100644 inst/app/templates/content/estimation/about-estimators/seq_bayes.html create mode 100644 inst/app/templates/content/estimation/about-estimators/wp.html create mode 100644 inst/app/templates/content/estimation/estimates.html create mode 100644 inst/app/templates/content/estimation/estimates/add-estimators.html create mode 100644 inst/app/templates/content/estimation/estimates/add-estimators/id.html create mode 100644 inst/app/templates/content/estimation/estimates/add-estimators/idea.html create mode 100644 inst/app/templates/content/estimation/estimates/add-estimators/mu.html create mode 100644 inst/app/templates/content/estimation/estimates/add-estimators/parameters.html create mode 100644 inst/app/templates/content/estimation/estimates/add-estimators/seq_bayes.html create mode 100644 inst/app/templates/content/estimation/estimates/add-estimators/wp.html create mode 100644 inst/app/templates/content/estimation/estimates/estimates-table.html delete mode 100644 inst/app/templates/content/estimators.html delete mode 100644 inst/app/templates/content/estimators/add-estimators.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/components/mu.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/components/panel.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/descriptions/id.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/descriptions/idea.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/descriptions/mu.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/descriptions/seq_bayes.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/descriptions/wp.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/parameters/id.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/parameters/idea.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/parameters/mu.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/parameters/seq_bayes.html delete mode 100644 inst/app/templates/content/estimators/add-estimators/parameters/wp.html delete mode 100644 inst/app/templates/content/estimators/view-estimates.html delete mode 100644 inst/app/templates/content/help/example-help-1.html delete mode 100644 inst/app/templates/content/help/example-help-2.html (limited to 'inst/app/templates/content') diff --git a/inst/app/templates/content/about.html b/inst/app/templates/content/about.html index d88738f..73b75ea 100644 --- a/inst/app/templates/content/about.html +++ b/inst/app/templates/content/about.html @@ -10,18 +10,19 @@ Technical details about the estimators featured in this project can be found in the reference article.

-

What is the basic reproduction number?

- The basic reproduction number, denoted R0, is defined as the expected number of infections caused by a - single infectious individual when introduced into a totally susceptible population. It assumes that all individuals in a given population are susceptible to the disease, - and that no preventive measures (such as lockdowns or vaccinations) have been enforced. It is a useful - indicator of the transmissibility of an infectious disease during the early stages of its spread and detection. + The basic reproduction number, denoted R0, is defined as the expected number of infections caused + by a single infectious individual when introduced into a totally susceptible population. It assumes that all + individuals in a given population are susceptible to the disease, and that no preventive measures (such as lockdowns + or vaccinations) have been enforced. It is a useful indicator of the transmissibility of an infectious disease during + the early stages of its spread and detection.

- If R0 < 1, the disease will eventually die out. On the other hand, if - R0 > 1, the disease will spread (the higher the R0, the faster this will happen). Due to uncertainty of known data about the disease, it is difficult to - determine R0 precisely. - Therefore, many estimation methods exist, each based on different assumptions and yielding different estimates. It is the - responsibility of users to employ the most appropriate estimator (or suite of estimators) given the situation at hand. + If R0 < 1, the disease will eventually die out. On the other hand, if + R0 > 1, the disease will spread (the higher the R0, the faster this will + happen). Due to uncertainty of known data about the disease, it is difficult to determine R0 + precisely. Therefore, many estimation methods exist, each based on different assumptions and yielding different + estimates. It is the responsibility of users to employ the most appropriate estimator (or suite of estimators) given + the situation at hand.

diff --git a/inst/app/templates/content/data.html b/inst/app/templates/content/data.html index eaae571..574f003 100644 --- a/inst/app/templates/content/data.html +++ b/inst/app/templates/content/data.html @@ -2,7 +2,6 @@ Enter data View data -
{{ htmlTemplate("templates/content/data/enter-data.html") }} diff --git a/inst/app/templates/content/data/enter-data.html b/inst/app/templates/content/data/enter-data.html index 77846fa..254f1d7 100644 --- a/inst/app/templates/content/data/enter-data.html +++ b/inst/app/templates/content/data/enter-data.html @@ -1,8 +1,9 @@ - -
- {{ htmlTemplate("templates/content/data/enter-data/entry.html") }} -
-
-
- {{ htmlTemplate("templates/content/data/enter-data/load-samples.html") }} -
+
+ {{ htmlTemplate("templates/content/data/enter-data/required-format.html") }} + {{ htmlTemplate("templates/content/data/enter-data/manual-entry.html") }} + {{ htmlTemplate("templates/content/data/enter-data/upload-data.html") }} +
+
+
+ {{ htmlTemplate("templates/content/data/enter-data/load-samples.html") }} +
diff --git a/inst/app/templates/content/data/enter-data/bulk-entry.html b/inst/app/templates/content/data/enter-data/bulk-entry.html deleted file mode 100644 index 30fab06..0000000 --- a/inst/app/templates/content/data/enter-data/bulk-entry.html +++ /dev/null @@ -1,48 +0,0 @@ -

Bulk entry

- - - -
-
-

Manually enter rows or upload a CSV file in the following format:

-

- Dataset name,Time units,Case counts -

-

- Time units must be one of - Days or - Weeks, and - Case counts - must be a comma-separated list of one or more non-negative integers. -

-

Example:

-

- Montreal,Days,1,2,3,4,5,6,7,8,9,19
- Ottawa,Weeks,1,2,3,4,5,6,7,8,9,19
- Toronto,Days,1,2,3,4,5,6,7,8,9,19 -

-
-
- -
- - -
- -
- -
- - - - -
- - -
- diff --git a/inst/app/templates/content/data/enter-data/entry.html b/inst/app/templates/content/data/enter-data/entry.html deleted file mode 100644 index be43625..0000000 --- a/inst/app/templates/content/data/enter-data/entry.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - -
-
-

Manually enter rows or upload a CSV file in the following format:

-

- Dataset name,Time units,Case counts -

-

- Time units must be one of - Days or - Weeks, and - Case counts - must be a comma-separated list of one or more non-negative integers. -

-

Example:

-

- Montreal,Days,1,2,3,4,5,6,7,8,9,19
- Ottawa,Weeks,1,2,3,4,5,6,7,8,9,19
- Toronto,Days,1,2,3,4,5,6,7,8,9,19 -

-
-
- -
- - -
- -
- -
- - - - -
- - -
- diff --git a/inst/app/templates/content/data/enter-data/load-samples.html b/inst/app/templates/content/data/enter-data/load-samples.html index a42a8c8..2a4f013 100644 --- a/inst/app/templates/content/data/enter-data/load-samples.html +++ b/inst/app/templates/content/data/enter-data/load-samples.html @@ -1,4 +1,5 @@

Load samples

+ {{ checkboxInput(inputId = "covid_canada", label = "COVID-19 Canada, 2020/03/03 - 2020/03/31 (Weekly)", value = FALSE, width = "100%" @@ -9,6 +10,7 @@ value = FALSE, width = "100%" ) }} +
diff --git a/inst/app/templates/content/data/enter-data/manual-entry.html b/inst/app/templates/content/data/enter-data/manual-entry.html new file mode 100644 index 0000000..a6319d9 --- /dev/null +++ b/inst/app/templates/content/data/enter-data/manual-entry.html @@ -0,0 +1,11 @@ + +
+ + +
+ +
+ +
diff --git a/inst/app/templates/content/data/enter-data/required-format.html b/inst/app/templates/content/data/enter-data/required-format.html new file mode 100644 index 0000000..724dd83 --- /dev/null +++ b/inst/app/templates/content/data/enter-data/required-format.html @@ -0,0 +1,25 @@ + + + +
+
+

Manually enter rows or upload a CSV file in the following format:

+

+ Dataset name,Time units,Case counts +

+

+ Time units must be one of + Days or + Weeks, and + Case counts + must be a comma-separated list of one or more non-negative integers. +

+

Example:

+

+ Disease A,Days,1,2,3,4,5,6,7,8,9
+ Disease B,Weeks,3,1,4,1,5,2,9
+ Disease C,Days,2,3,5,7,11,13,17,19 +

+
+
diff --git a/inst/app/templates/content/data/enter-data/single-entry.html b/inst/app/templates/content/data/enter-data/single-entry.html deleted file mode 100644 index 9f249d9..0000000 --- a/inst/app/templates/content/data/enter-data/single-entry.html +++ /dev/null @@ -1,39 +0,0 @@ -

Single entry

- -
- - - -
- -
- - - -
- -
- -
-
- -
-
- -
-
-
- - diff --git a/inst/app/templates/content/data/enter-data/upload-data.html b/inst/app/templates/content/data/enter-data/upload-data.html new file mode 100644 index 0000000..740047b --- /dev/null +++ b/inst/app/templates/content/data/enter-data/upload-data.html @@ -0,0 +1,12 @@ + + + + +
+ + +
+ + diff --git a/inst/app/templates/content/data/view-data.html b/inst/app/templates/content/data/view-data.html index 52f1e85..880cf7f 100644 --- a/inst/app/templates/content/data/view-data.html +++ b/inst/app/templates/content/data/view-data.html @@ -1,19 +1,3 @@ -

Data table

- -
- {{ DT::dataTableOutput(outputId = "data_table") }} -
- - - - - - - Export table - +{{ htmlTemplate("templates/content/data/view-data/data-table.html") }} +
+{{ htmlTemplate("templates/content/data/view-data/data-plots.html") }} diff --git a/inst/app/templates/content/data/view-data/data-plots.html b/inst/app/templates/content/data/view-data/data-plots.html new file mode 100644 index 0000000..5019088 --- /dev/null +++ b/inst/app/templates/content/data/view-data/data-plots.html @@ -0,0 +1,7 @@ +

Data plots

+
+ {{ plotly::plotlyOutput(outputId = "data_plot_days") }} +
+
+ {{ plotly::plotlyOutput(outputId = "data_plot_weeks") }} +
diff --git a/inst/app/templates/content/data/view-data/data-table.html b/inst/app/templates/content/data/view-data/data-table.html new file mode 100644 index 0000000..590a5b9 --- /dev/null +++ b/inst/app/templates/content/data/view-data/data-table.html @@ -0,0 +1,18 @@ +

Data table

+
+ {{ DT::dataTableOutput(outputId = "data_table") }} +
+ + + + + + + Export table + diff --git a/inst/app/templates/content/estimation.html b/inst/app/templates/content/estimation.html new file mode 100644 index 0000000..5764057 --- /dev/null +++ b/inst/app/templates/content/estimation.html @@ -0,0 +1,13 @@ + + +
+
+ {{ htmlTemplate("templates/content/estimation/about-estimators.html") }} +
+
+ {{ htmlTemplate("templates/content/estimation/estimates.html") }} +
+
diff --git a/inst/app/templates/content/estimation/about-estimators.html b/inst/app/templates/content/estimation/about-estimators.html new file mode 100644 index 0000000..db2898b --- /dev/null +++ b/inst/app/templates/content/estimation/about-estimators.html @@ -0,0 +1,31 @@ +
+ {{ + htmlTemplate("templates/content/estimation/about-estimators/panel.html", + id = "id", + header = "Incidence Decay (ID)", + reference_label = "Fisman et al. (PloS One, 2013)", + reference_url = "https://doi.org/10.1371/journal.pone.0083622" + ) + }} + {{ + htmlTemplate("templates/content/estimation/about-estimators/panel.html", + id = "idea", header = "Incidence Decay and Exponential Adjustment (IDEA)", + reference_label = "Fisman et al. (PloS One, 2013)", + reference_url = "https://doi.org/10.1371/journal.pone.0083622" + ) + }} + {{ + htmlTemplate("templates/content/estimation/about-estimators/panel.html", + id = "seq_bayes", header = "Sequential Bayes (seqB)", + reference_label = "Bettencourt and Riberio (PloS One, 2008)", + reference_url = "https://doi.org/10.1371/journal.pone.0002185" + ) + }} + {{ + htmlTemplate("templates/content/estimation/about-estimators/panel.html", + id = "wp", header = "White and Pagano (WP)", + reference_label = "White and Pagano (Statistics in Medicine, 2008)", + reference_url = "https://doi.org/10.1002/sim.3136" + ) + }} +
diff --git a/inst/app/templates/content/estimation/about-estimators/id.html b/inst/app/templates/content/estimation/about-estimators/id.html new file mode 100644 index 0000000..3200c00 --- /dev/null +++ b/inst/app/templates/content/estimation/about-estimators/id.html @@ -0,0 +1,5 @@ +The incidence decay (ID) estimator assumes an exponential model and finds the parameters by minimizing the sum of the +squared differences between the observed cases counts and the case counts expected based on the assumed model. +The method assumes that the serial interval is known. This means that the user needs to input the value of the serial +interval. The serial interval is the average time between the first infection and the time the first infected individual +exhibits disease symptoms. diff --git a/inst/app/templates/content/estimation/about-estimators/idea.html b/inst/app/templates/content/estimation/about-estimators/idea.html new file mode 100644 index 0000000..edfbb79 --- /dev/null +++ b/inst/app/templates/content/estimation/about-estimators/idea.html @@ -0,0 +1 @@ +This is a short description of the IDEA method. diff --git a/inst/app/templates/content/estimation/about-estimators/panel.html b/inst/app/templates/content/estimation/about-estimators/panel.html new file mode 100644 index 0000000..98fe155 --- /dev/null +++ b/inst/app/templates/content/estimation/about-estimators/panel.html @@ -0,0 +1,14 @@ +
+

+ +

+
+
+

Reference: {{ reference_label }}

+

{{ htmlTemplate(paste0("templates/content/estimation/about-estimators/", id, ".html")) }}

+
+
+
diff --git a/inst/app/templates/content/estimation/about-estimators/seq_bayes.html b/inst/app/templates/content/estimation/about-estimators/seq_bayes.html new file mode 100644 index 0000000..f6df3ee --- /dev/null +++ b/inst/app/templates/content/estimation/about-estimators/seq_bayes.html @@ -0,0 +1 @@ +This is a short description of the seqB method. diff --git a/inst/app/templates/content/estimation/about-estimators/wp.html b/inst/app/templates/content/estimation/about-estimators/wp.html new file mode 100644 index 0000000..640b44d --- /dev/null +++ b/inst/app/templates/content/estimation/about-estimators/wp.html @@ -0,0 +1 @@ +This is a short description of the WP method. diff --git a/inst/app/templates/content/estimation/estimates.html b/inst/app/templates/content/estimation/estimates.html new file mode 100644 index 0000000..bc9124e --- /dev/null +++ b/inst/app/templates/content/estimation/estimates.html @@ -0,0 +1,3 @@ +{{ htmlTemplate("templates/content/estimation/estimates/estimates-table.html") }} +
+{{ htmlTemplate("templates/content/estimation/estimates/add-estimators.html") }} diff --git a/inst/app/templates/content/estimation/estimates/add-estimators.html b/inst/app/templates/content/estimation/estimates/add-estimators.html new file mode 100644 index 0000000..60111c7 --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/add-estimators.html @@ -0,0 +1,16 @@ +

Add estimators

+
+ + + + + {{ htmlTemplate("templates/content/estimation/estimates/add-estimators/parameters.html", id = "id") }} + {{ htmlTemplate("templates/content/estimation/estimates/add-estimators/parameters.html", id = "idea") }} + {{ htmlTemplate("templates/content/estimation/estimates/add-estimators/parameters.html", id = "seq_bayes") }} + {{ htmlTemplate("templates/content/estimation/estimates/add-estimators/parameters.html", id = "wp") }} +
diff --git a/inst/app/templates/content/estimation/estimates/add-estimators/id.html b/inst/app/templates/content/estimation/estimates/add-estimators/id.html new file mode 100644 index 0000000..7c35e55 --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/add-estimators/id.html @@ -0,0 +1 @@ +{{ htmlTemplate("templates/content/estimation/estimates/add-estimators/mu.html", id = "id") }} diff --git a/inst/app/templates/content/estimation/estimates/add-estimators/idea.html b/inst/app/templates/content/estimation/estimates/add-estimators/idea.html new file mode 100644 index 0000000..781349f --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/add-estimators/idea.html @@ -0,0 +1 @@ +{{ htmlTemplate("templates/content/estimation/estimates/add-estimators/mu.html", id = "idea") }} diff --git a/inst/app/templates/content/estimation/estimates/add-estimators/mu.html b/inst/app/templates/content/estimation/estimates/add-estimators/mu.html new file mode 100644 index 0000000..8781574 --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/add-estimators/mu.html @@ -0,0 +1,22 @@ + + +
+ + + + +
+ +
+ +
diff --git a/inst/app/templates/content/estimation/estimates/add-estimators/parameters.html b/inst/app/templates/content/estimation/estimates/add-estimators/parameters.html new file mode 100644 index 0000000..5250e31 --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/add-estimators/parameters.html @@ -0,0 +1,7 @@ +
+
Parameters
+ {{ htmlTemplate(paste0("templates/content/estimation/estimates/add-estimators/", id, ".html")) }} + +
diff --git a/inst/app/templates/content/estimation/estimates/add-estimators/seq_bayes.html b/inst/app/templates/content/estimation/estimates/add-estimators/seq_bayes.html new file mode 100644 index 0000000..028fabc --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/add-estimators/seq_bayes.html @@ -0,0 +1,22 @@ +
+ +
+ {{ htmlTemplate("templates/content/estimation/estimates/add-estimators/mu.html", id = "seq_bayes") }} +
+ +
+ + + + + + +
+
diff --git a/inst/app/templates/content/estimation/estimates/add-estimators/wp.html b/inst/app/templates/content/estimation/estimates/add-estimators/wp.html new file mode 100644 index 0000000..511170f --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/add-estimators/wp.html @@ -0,0 +1,39 @@ + + +
+
+ +
+
+ +
+
+ +
+ {{ htmlTemplate("templates/content/estimation/estimates/add-estimators/mu.html", id = "wp") }} +
+ +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+
diff --git a/inst/app/templates/content/estimation/estimates/estimates-table.html b/inst/app/templates/content/estimation/estimates/estimates-table.html new file mode 100644 index 0000000..4704d03 --- /dev/null +++ b/inst/app/templates/content/estimation/estimates/estimates-table.html @@ -0,0 +1,19 @@ +

Estimates table

+ +
+ {{ DT::dataTableOutput(outputId = "estimates_table") }} +
+ + + + + + + Export table + diff --git a/inst/app/templates/content/estimators.html b/inst/app/templates/content/estimators.html deleted file mode 100644 index 133241a..0000000 --- a/inst/app/templates/content/estimators.html +++ /dev/null @@ -1,13 +0,0 @@ - - -
-
- {{ htmlTemplate("templates/content/estimators/add-estimators.html") }} -
-
- {{ htmlTemplate("templates/content/estimators/view-estimates.html") }} -
-
diff --git a/inst/app/templates/content/estimators/add-estimators.html b/inst/app/templates/content/estimators/add-estimators.html deleted file mode 100644 index 0d7562e..0000000 --- a/inst/app/templates/content/estimators/add-estimators.html +++ /dev/null @@ -1,19 +0,0 @@ -
- {{ - htmlTemplate("templates/content/estimators/add-estimators/components/panel.html", - id = "id", header = "Incidence Decay (ID)", reference_label = "Fisman et al. - (PloS One, 2013)", reference_url = - "https://doi.org/10.1371/journal.pone.0083622" ) }} {{ - htmlTemplate("templates/content/estimators/add-estimators/components/panel.html", - id = "idea", header = "Incidence Decay and Exponential Adjustment (IDEA)", - reference_label = "Fisman et al. (PloS One, 2013)", reference_url = - "https://doi.org/10.1371/journal.pone.0083622" ) }} {{ - htmlTemplate("templates/content/estimators/add-estimators/components/panel.html", - id = "seq_bayes", header = "Sequential Bayes (seqB)", reference_label = - "Bettencourt and Riberio (PloS One, 2008)", reference_url = - "https://doi.org/10.1371/journal.pone.0002185" ) }} {{ - htmlTemplate("templates/content/estimators/add-estimators/components/panel.html", - id = "wp", header = "White and Pagano (WP)", reference_label = "White and - Pagano (Statistics in Medicine, 2008)", reference_url = - "https://doi.org/10.1002/sim.3136" ) }} -
diff --git a/inst/app/templates/content/estimators/add-estimators/components/mu.html b/inst/app/templates/content/estimators/add-estimators/components/mu.html deleted file mode 100644 index f25a1c8..0000000 --- a/inst/app/templates/content/estimators/add-estimators/components/mu.html +++ /dev/null @@ -1,20 +0,0 @@ - - -
- - - - -
- - diff --git a/inst/app/templates/content/estimators/add-estimators/components/panel.html b/inst/app/templates/content/estimators/add-estimators/components/panel.html deleted file mode 100644 index b1e0378..0000000 --- a/inst/app/templates/content/estimators/add-estimators/components/panel.html +++ /dev/null @@ -1,21 +0,0 @@ -
-

- -

-
-
-

Reference: {{ reference_label }}

-

{{ htmlTemplate(paste0("templates/content/estimators/add-estimators/descriptions/", id, ".html")) }}

-
Parameters
-
- {{ htmlTemplate(paste0("templates/content/estimators/add-estimators/parameters/", id, ".html")) }} -
- -
-
-
diff --git a/inst/app/templates/content/estimators/add-estimators/descriptions/id.html b/inst/app/templates/content/estimators/add-estimators/descriptions/id.html deleted file mode 100644 index b47850f..0000000 --- a/inst/app/templates/content/estimators/add-estimators/descriptions/id.html +++ /dev/null @@ -1 +0,0 @@ -The incidence decay (ID) estimator assumes an exponential model and finds the parameters by minimizing the sum of the squared differences between the observed cases counts and the case counts expected based on the assumed model. The method assumes that the serial interval is known. This means that the user needs to input the value of the serial interval. The serial interval is the average time between the first infection and the time the first infected individual exhibits disease symptoms. diff --git a/inst/app/templates/content/estimators/add-estimators/descriptions/idea.html b/inst/app/templates/content/estimators/add-estimators/descriptions/idea.html deleted file mode 100644 index edfbb79..0000000 --- a/inst/app/templates/content/estimators/add-estimators/descriptions/idea.html +++ /dev/null @@ -1 +0,0 @@ -This is a short description of the IDEA method. diff --git a/inst/app/templates/content/estimators/add-estimators/descriptions/mu.html b/inst/app/templates/content/estimators/add-estimators/descriptions/mu.html deleted file mode 100644 index 6e7bfe9..0000000 --- a/inst/app/templates/content/estimators/add-estimators/descriptions/mu.html +++ /dev/null @@ -1,7 +0,0 @@ -The serial interval (SI) is NOT one of the estimators. - -

The SI is a parameter required by all of the estimators, and can also be estimated by the WP method.

- -

The SI is defined as the average time between successive infections in a chain of transmission i.e., the time between the infection of an infected and their subsequent transmissions.

- -

Make the tab a different shade (light gray) and then this won't have parameters. It will let us not have to explain SI every single time. We'll expand the description later.

diff --git a/inst/app/templates/content/estimators/add-estimators/descriptions/seq_bayes.html b/inst/app/templates/content/estimators/add-estimators/descriptions/seq_bayes.html deleted file mode 100644 index f6df3ee..0000000 --- a/inst/app/templates/content/estimators/add-estimators/descriptions/seq_bayes.html +++ /dev/null @@ -1 +0,0 @@ -This is a short description of the seqB method. diff --git a/inst/app/templates/content/estimators/add-estimators/descriptions/wp.html b/inst/app/templates/content/estimators/add-estimators/descriptions/wp.html deleted file mode 100644 index 640b44d..0000000 --- a/inst/app/templates/content/estimators/add-estimators/descriptions/wp.html +++ /dev/null @@ -1 +0,0 @@ -This is a short description of the WP method. diff --git a/inst/app/templates/content/estimators/add-estimators/parameters/id.html b/inst/app/templates/content/estimators/add-estimators/parameters/id.html deleted file mode 100644 index a3159ca..0000000 --- a/inst/app/templates/content/estimators/add-estimators/parameters/id.html +++ /dev/null @@ -1 +0,0 @@ -{{ htmlTemplate("templates/content/estimators/add-estimators/components/mu.html", id = "id") }} diff --git a/inst/app/templates/content/estimators/add-estimators/parameters/idea.html b/inst/app/templates/content/estimators/add-estimators/parameters/idea.html deleted file mode 100644 index 379be84..0000000 --- a/inst/app/templates/content/estimators/add-estimators/parameters/idea.html +++ /dev/null @@ -1 +0,0 @@ -{{ htmlTemplate("templates/content/estimators/add-estimators/components/mu.html", id = "idea") }} diff --git a/inst/app/templates/content/estimators/add-estimators/parameters/mu.html b/inst/app/templates/content/estimators/add-estimators/parameters/mu.html deleted file mode 100644 index a3159ca..0000000 --- a/inst/app/templates/content/estimators/add-estimators/parameters/mu.html +++ /dev/null @@ -1 +0,0 @@ -{{ htmlTemplate("templates/content/estimators/add-estimators/components/mu.html", id = "id") }} diff --git a/inst/app/templates/content/estimators/add-estimators/parameters/seq_bayes.html b/inst/app/templates/content/estimators/add-estimators/parameters/seq_bayes.html deleted file mode 100644 index bcc82b7..0000000 --- a/inst/app/templates/content/estimators/add-estimators/parameters/seq_bayes.html +++ /dev/null @@ -1,22 +0,0 @@ -
- -
- {{ htmlTemplate("templates/content/estimators/add-estimators/components/mu.html", id = "seq_bayes") }} -
- -
- - - - - - -
-
diff --git a/inst/app/templates/content/estimators/add-estimators/parameters/wp.html b/inst/app/templates/content/estimators/add-estimators/parameters/wp.html deleted file mode 100644 index b789a23..0000000 --- a/inst/app/templates/content/estimators/add-estimators/parameters/wp.html +++ /dev/null @@ -1,39 +0,0 @@ - - -
-
- -
-
- -
-
- -
- {{ htmlTemplate("templates/content/estimators/add-estimators/components/mu.html", id = "wp") }} -
- -
- -
- - - -
- -
- - - -
- -
- - - -
-
diff --git a/inst/app/templates/content/estimators/view-estimates.html b/inst/app/templates/content/estimators/view-estimates.html deleted file mode 100644 index e81fff6..0000000 --- a/inst/app/templates/content/estimators/view-estimates.html +++ /dev/null @@ -1,21 +0,0 @@ -

Estimates table

- -
- {{ DT::dataTableOutput(outputId = "estimates_table") }} -
- - - - - - - Export table - diff --git a/inst/app/templates/content/help.html b/inst/app/templates/content/help.html index 51192fc..df4e887 100644 --- a/inst/app/templates/content/help.html +++ b/inst/app/templates/content/help.html @@ -1,6 +1,8 @@
- {{ htmlTemplate("templates/content/help/panel.html", id = "serial-interval", - header = "What is a Serial Interval(mu) ?" ) }} {{ - htmlTemplate("templates/content/help/panel.html", id = "example-help-2", - header = "Example help 2" ) }} + {{ + htmlTemplate("templates/content/help/panel.html", + id = "serial-interval", + header = "What is the serial interval?" + ) + }}
diff --git a/inst/app/templates/content/help/example-help-1.html b/inst/app/templates/content/help/example-help-1.html deleted file mode 100644 index 245b9b6..0000000 --- a/inst/app/templates/content/help/example-help-1.html +++ /dev/null @@ -1 +0,0 @@ -Example help 1 diff --git a/inst/app/templates/content/help/example-help-2.html b/inst/app/templates/content/help/example-help-2.html deleted file mode 100644 index a4817b5..0000000 --- a/inst/app/templates/content/help/example-help-2.html +++ /dev/null @@ -1 +0,0 @@ -Example help 2 diff --git a/inst/app/templates/content/help/serial-interval.html b/inst/app/templates/content/help/serial-interval.html index 88bf82c..e061115 100644 --- a/inst/app/templates/content/help/serial-interval.html +++ b/inst/app/templates/content/help/serial-interval.html @@ -1,18 +1,9 @@ -Reference -Wikipedia -
-
- -

The serial interval (SI) is NOT one of the estimators.

+

Reference: Wikipedia

- The SI is a parameter required by all of the estimators, and can also be - estimated by the WP method. + The serial interval (SI) is not one of the estimators. It is a parameter required by most of the estimators, and can + also be estimated by some of them (if not specified).

-

- The SI is defined as the average time between successive infections in a chain - of transmission i.e., the time between the infection of an infected and their - subsequent transmissions. + The SI is defined as the average time between successive infections in a chain of transmission (i.e., the time between + the infection of an infected individual and their subsequent transmissions).

-- cgit v1.2.3