Skip to content

Commit 0af3f9e

Browse files
committed
epidatr 1.0.0
1 parent 502b351 commit 0af3f9e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

vignettes/epipredict.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Get started with epipredict"
33
output: rmarkdown::html_vignette
44
vignette: >
5-
%\VignetteIndexEntry{epipredict}
5+
%\VignetteIndexEntry{Get started with epipredict}
66
%\VignetteEngine{knitr::rmarkdown}
77
%\VignetteEncoding{UTF-8}
88
---

vignettes/preprocessing-and-models.Rmd

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,22 @@ regression, the textbook example for modeling count data, as an illustration
6363
for using the `epipredict` package with other existing tidymodels packages.
6464

6565
```{r poisson-reg-data}
66-
x <- covidcast(
66+
x <- pub_covidcast(
6767
source = "jhu-csse",
6868
signals = "confirmed_incidence_num",
6969
time_type = "day",
7070
geo_type = "state",
7171
time_values = epirange(20210604, 20211231),
7272
geo_values = "ca,fl,tx,ny,nj") %>%
73-
fetch() %>%
7473
select(geo_value, time_value, cases = value)
7574
76-
y <- covidcast(
75+
y <- pub_covidcast(
7776
source = "jhu-csse",
7877
signals = "deaths_incidence_num",
7978
time_type = "day",
8079
geo_type = "state",
8180
time_values = epirange(20210604, 20211231),
8281
geo_values = "ca,fl,tx,ny,nj") %>%
83-
fetch() %>%
8482
select(geo_value, time_value, deaths = value)
8583
8684
counts_subset <- full_join(x, y, by = c("geo_value", "time_value")) %>%
@@ -244,24 +242,22 @@ in public in the past 7 days maintained a distance of at least 6 feet.
244242
State-wise population data from the 2019 U.S. Census is included in this package
245243
and will be used in `layer_population_scaling()`.
246244
```{r}
247-
behav_ind_mask <- covidcast(
245+
behav_ind_mask <- pub_covidcast(
248246
source = "fb-survey",
249247
signals = "smoothed_wwearing_mask_7d",
250248
time_type = "day",
251249
geo_type = "state",
252250
time_values = epirange(20210604, 20211231),
253251
geo_values = "ca,fl,tx,ny,nj") %>%
254-
fetch() %>%
255252
select(geo_value, time_value, masking = value)
256253
257-
behav_ind_distancing <- covidcast(
254+
behav_ind_distancing <- pub_covidcast(
258255
source = "fb-survey",
259256
signals = "smoothed_wothers_distanced_public",
260257
time_type = "day",
261258
geo_type = "state",
262259
time_values = epirange(20210604, 20211231),
263260
geo_values = "ca,fl,tx,ny,nj") %>%
264-
fetch() %>%
265261
select(geo_value, time_value, distancing = value)
266262
267263
pop_dat <- state_census %>% select(abbr, pop)

0 commit comments

Comments
 (0)