Skip to content

Commit

Permalink
All pages compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
arranhamlet committed Sep 27, 2024
1 parent 573cf62 commit 61d38be
Show file tree
Hide file tree
Showing 97 changed files with 23,787 additions and 9,745 deletions.
Binary file added data/surveys/tab_survey_output.rds
Binary file not shown.
1,012 changes: 565 additions & 447 deletions html_outputs/new_pages/age_pyramid.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
347 changes: 224 additions & 123 deletions html_outputs/new_pages/collaboration.html

Large diffs are not rendered by default.

404 changes: 264 additions & 140 deletions html_outputs/new_pages/combination_analysis.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
699 changes: 381 additions & 318 deletions html_outputs/new_pages/contact_tracing.html

Large diffs are not rendered by default.

917 changes: 490 additions & 427 deletions html_outputs/new_pages/diagrams.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
279 changes: 193 additions & 86 deletions html_outputs/new_pages/directories.html

Large diffs are not rendered by default.

1,095 changes: 607 additions & 488 deletions html_outputs/new_pages/epidemic_models.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
179 changes: 137 additions & 42 deletions html_outputs/new_pages/errors.html

Large diffs are not rendered by default.

192 changes: 102 additions & 90 deletions html_outputs/new_pages/flexdashboard.html

Large diffs are not rendered by default.

1,154 changes: 643 additions & 511 deletions html_outputs/new_pages/ggplot_basics.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,168 changes: 647 additions & 521 deletions html_outputs/new_pages/gis.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified html_outputs/new_pages/gis_files/figure-html/unnamed-chunk-59-1.png
817 changes: 467 additions & 350 deletions html_outputs/new_pages/heatmaps.html

Large diffs are not rendered by default.

350 changes: 253 additions & 97 deletions html_outputs/new_pages/help.html

Large diffs are not rendered by default.

469 changes: 298 additions & 171 deletions html_outputs/new_pages/interactive_plots.html

Large diffs are not rendered by default.

649 changes: 327 additions & 322 deletions html_outputs/new_pages/missing_data.html

Large diffs are not rendered by default.

451 changes: 282 additions & 169 deletions html_outputs/new_pages/moving_average.html

Large diffs are not rendered by default.

154 changes: 86 additions & 68 deletions html_outputs/new_pages/network_drives.html

Large diffs are not rendered by default.

871 changes: 497 additions & 374 deletions html_outputs/new_pages/phylogenetic_trees.html

Large diffs are not rendered by default.

Diff not rendered.
2,394 changes: 1,878 additions & 516 deletions html_outputs/new_pages/regression.html

Large diffs are not rendered by default.

276 changes: 186 additions & 90 deletions html_outputs/new_pages/reportfactory.html

Large diffs are not rendered by default.

156 changes: 87 additions & 69 deletions html_outputs/new_pages/rmarkdown.html

Large diffs are not rendered by default.

7,961 changes: 7,081 additions & 880 deletions html_outputs/new_pages/shiny_basics.html

Large diffs are not rendered by default.

688 changes: 274 additions & 414 deletions html_outputs/new_pages/standardization.html

Large diffs are not rendered by default.

2,881 changes: 2,053 additions & 828 deletions html_outputs/new_pages/survey_analysis.html

Large diffs are not rendered by default.

768 changes: 458 additions & 310 deletions html_outputs/new_pages/survival_analysis.html

Large diffs are not rendered by default.

639 changes: 376 additions & 263 deletions html_outputs/new_pages/tables_presentation.html

Large diffs are not rendered by default.

1,975 changes: 1,069 additions & 906 deletions html_outputs/new_pages/time_series.html

Large diffs are not rendered by default.

911 changes: 534 additions & 377 deletions html_outputs/new_pages/transmission_chains.html

Large diffs are not rendered by default.

729 changes: 450 additions & 279 deletions html_outputs/new_pages/writing_functions.html

Large diffs are not rendered by default.

103 changes: 68 additions & 35 deletions html_outputs/search.json

Large diffs are not rendered by default.

2,787 changes: 2,787 additions & 0 deletions html_outputs/site_libs/leaflet-binding-2.2.2/leaflet.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LeafletWidget.methods.addProviderTiles = function(provider, layerId, group, options) {
this.layerManager.addLayer(L.tileLayer.provider(provider, options), "tile", layerId, group);
};
4 changes: 3 additions & 1 deletion new_pages/help.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

This page covers how to get help by posting a Github issue or by posting a reproducible example ("reprex") to an online forum.


```{r, echo = F, warning = F, message = F}
library(tidyverse)
```


## Github issues
Expand Down
2 changes: 1 addition & 1 deletion new_pages/missing_data.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ You could also do a similar process for replacing categorical data with a specif

```{r}
linelist <- linelist %>%
mutate(outcome_replace_na_with_death = replace_na(outcome, "Death"))
mutate(outcome_replace_na_with_death = replace_na(outcome, 1))
```

### Regression imputation {.unnumbered}
Expand Down
21 changes: 0 additions & 21 deletions new_pages/regression_files/execute-results/html.json

This file was deleted.

Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
5 changes: 3 additions & 2 deletions new_pages/standardization.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ Currently, the values of the column `age_cat5` from the `standard_pop_data` data
```{r}
# Remove specific string from column values
standard_pop_clean <- standard_pop_data %>%
rename(age_cat5 = AgeGroup) %>% #Change name of age group column to match that in our population data and death counts
mutate(
age_cat5 = str_replace_all(age_cat5, "years", ""), # remove "year"
age_cat5 = str_replace_all(age_cat5, "plus", ""), # remove "plus"
Expand All @@ -279,7 +278,9 @@ standard_pop_clean <- standard_pop_data %>%
Finally, the package **PHEindicatormethods**, detailed [below](#standard_phe), expects the standard populations joined to the country event and population counts. So, we will create a dataset `all_data` for that purpose.

```{r}
all_data <- left_join(country_data, standard_pop_clean, by=c("age_cat5", "Sex"))
all_data <- left_join(country_data,
standard_pop_clean,
by = c("age_cat5", "Sex"))
```

This complete dataset looks like this:
Expand Down
22 changes: 13 additions & 9 deletions new_pages/survey_analysis.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -964,27 +964,31 @@ purrr::map(
```



### **Sitrep** package

The `tab_survey()` function from **sitrep** is a wrapper for **srvyr**, allowing
you to create weighted tables with minimal coding. It also allows you to calculate
weighted proportions for categorical variables.

```{r sitrep_props}
```{r eval = F, sitrep_props}
## using the survey design object
survey_design %>%
## pass the names of variables of interest unquoted
tab_survey(arrived, left, died, education_level,
deff = TRUE, # calculate the design effect
pretty = TRUE # merge the proportion and 95%CI
)
tab_survey(
"arrived",
"left",
"died",
"education_level",
deff = TRUE, # calculate the design effect
pretty = TRUE # merge the proportion and 95%CI
)
```


```{r, echo = F, warning = F, message=FALSE}
import(here("data", "surveys", "tab_survey_output.rds"))
```

### **Gtsummary** package

Expand Down Expand Up @@ -1037,7 +1041,7 @@ cbind(

### **Srvyr** package

```{r srvyr_ratio}
```{r srvyr_ratio, warning=FALSE, message=F}
survey_design %>%
## survey ratio used to account for observation time
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed new_pages/time_series_files/figure-html/nb_reg-1.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit 61d38be

Please sign in to comment.