Skip to content

Commit

Permalink
change wording to specify datasets are in epidatasets only
Browse files Browse the repository at this point in the history
  • Loading branch information
nmdefries committed Oct 28, 2024
1 parent d6769fd commit 4001e19
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 0 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Imports:
cli,
distributional,
dplyr,
epidatasets,
generics,
ggplot2,
glue,
Expand All @@ -51,7 +50,6 @@ Imports:
workflows (>= 1.0.0)
Suggests:
data.table,
epidatasets,
epidatr (>= 1.0.0),
fs,
grf,
Expand Down
5 changes: 2 additions & 3 deletions vignettes/articles/symptom-surveys.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ re-scale and transform the signals to our `epi_recipe`. This would make the code
more succinct and self-contained.

We will compare two CLI-in-community indicators from
different sources. The data are included in this package (via the
[`epidatasets` package](https://cmu-delphi.github.io/epidatasets/)),
different sources. The data are available in the [`epidatasets` package](https://cmu-delphi.github.io/epidatasets/)),
and can be loaded with:

```{r, message = FALSE, warning = FALSE}
Expand All @@ -156,7 +155,7 @@ library(purrr)
library(epipredict)
library(recipes)
z <- county_smoothed_cli_comparison
z <- epidatasets::county_smoothed_cli_comparison
```

The data can also be constructed from data the Delphi API with the following code:
Expand Down
1 change: 1 addition & 0 deletions vignettes/panel-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ library(parsnip)
library(recipes)
library(epiprocess)
library(epipredict)
library(epidatasets)
library(ggplot2)
theme_set(theme_bw())
```
Expand Down
12 changes: 5 additions & 7 deletions vignettes/preprocessing-and-models.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ Although there are many state-of-the-art models, we choose to use Poisson
regression, the textbook example for modeling count data, as an illustration
for using the `epipredict` package with other existing tidymodels packages.

The `counts_subset` dataset is included in this package (via the
[`epidatasets` package](https://cmu-delphi.github.io/epidatasets/)),
The `counts_subset` dataset is available in the [`epidatasets` package](https://cmu-delphi.github.io/epidatasets/)),
and contains the number of confirmed cases and deaths from June 4, 2021 to Dec
31, 2021 in some U.S. states. It can be loaded with:

```{r poisson-reg-data}
x <- counts_subset
x <- epidatasets::counts_subset
```

The data can also be fetched from the Delphi API with the following query:
Expand Down Expand Up @@ -256,13 +255,12 @@ in public in the past 7 days maintained a distance of at least 6 feet.
State-wise population data from the 2019 U.S. Census will be used in
`layer_population_scaling()`.

Both datasets are included in this package (via the
[`epidatasets` package](https://cmu-delphi.github.io/epidatasets/)),
Both datasets are available in the [`epidatasets` package](https://cmu-delphi.github.io/epidatasets/)),
and can be loaded with:

```{r}
behav_ind <- ctis_covid_behaviours
pop_dat <- state_census %>% select(abbr, pop)
behav_ind <- epidatasets::ctis_covid_behaviours
pop_dat <- epidatasets::state_census %>% select(abbr, pop)
```

The data can also be fetched from the Delphi API with the following query:
Expand Down

0 comments on commit 4001e19

Please sign in to comment.