Skip to content

Commit

Permalink
Merge pull request #558 from cmu-delphi/ds/doc
Browse files Browse the repository at this point in the history
doc: update from Rachel's comments
  • Loading branch information
dajmcdon authored Nov 12, 2024
2 parents 2ef8914 + 76e516d commit 192f04b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vignettes/epiprocess.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ edf %>%
```

We can compute the 7 day moving average of the confirmed daily cases for each
geo_value by using the `epi_slide_mean()` function. For a more in-depth guide to
`geo_value` by using the `epi_slide_mean()` function. For a more in-depth guide to
sliding, see `vignette("epi_df")`.

```{r}
Expand All @@ -96,15 +96,15 @@ edf %>%
```

We can compute the growth rate of the confirmed cumulative cases for each
geo_value. For a more in-depth guide to growth rates, see `vignette("growth_rate")`.
`geo_value`. For a more in-depth guide to growth rates, see `vignette("growth_rate")`.

```{r}
edf %>%
group_by(geo_value) %>%
mutate(cases_growth = growth_rate(x = time_value, y = cases_cumulative, method = "rel_change", h = 7))
```

Detect outliers in daily reported cases for each geo_value. For a more in-depth
Detect outliers in daily reported cases for each `geo_value`. For a more in-depth
guide to outlier detection, see `vignette("outliers")`.

```{r message=FALSE}
Expand All @@ -114,8 +114,8 @@ edf %>%
ungroup()
```

Add a column to the epi_df object with the daily deaths for each geo_value and
compute the correlations between cases and deaths for each geo_value. For a more
Add a column to the epi_df object with the daily deaths for each `geo_value` and
compute the correlations between cases and deaths for each `geo_value`. For a more
in-depth guide to correlations, see `vignette("correlation")`.

```{r}
Expand Down

0 comments on commit 192f04b

Please sign in to comment.