WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install (unless you’re planning on contributing to package
31
-
development, we suggest using the stable version):
30
+
Unless you’re planning on contributing to package
31
+
development, we suggest using the stable version.
32
+
To install, run:
32
33
33
34
```r
34
35
# Stable version
@@ -44,25 +45,32 @@ is at <https://cmu-delphi.github.io/epipredict/dev>.
44
45
45
46
## Motivating example
46
47
47
-
To demonstrate the kind of forecast epipredict can make, say we’re
48
-
predicting COVID deaths per 100k for each state on
48
+
To demonstrate the kind of forecast `{epipredict}` can make, say we want to
49
+
predict COVID-19 deaths per 100k people for each state on 2021-08-01.
49
50
50
51
```r
52
+
library(epipredict)
53
+
library(epidatr)
54
+
library(epiprocess)
55
+
library(dplyr)
56
+
library(ggplot2)
57
+
51
58
forecast_date<- as.Date("2021-08-01")
52
59
```
53
60
54
61
Below the fold, we construct this dataset as an `epiprocess::epi_df`
55
-
from JHU data.
62
+
from [Johns Hopkins Center for Systems Science and Engineering deaths data](https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html).
56
63
57
64
<details>
58
65
<summary>
59
66
Creating the dataset using `{epidatr}` and `{epiprocess}`
60
67
</summary>
61
68
62
-
This dataset can be found in the package as `covid_case_death_rates`; we
63
-
demonstrate some of the typically ubiquitous cleaning operations needed
64
-
to be able to forecast. First we pull both jhu-csse cases and deaths
65
-
from [`{epidatr}`](https://cmu-delphi.github.io/epidatr/) package:
69
+
This section is intended to demonstrate some of the ubiquitous cleaning operations needed
70
+
to be able to forecast.
71
+
The dataset prepared here is also included ready-to-go in `{epipredict}` as `covid_case_death_rates`.
72
+
73
+
First we pull both `jhu-csse` cases and deaths data from the [Delphi API](https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html) using the [`{epidatr}`](https://cmu-delphi.github.io/epidatr/) package:
66
74
67
75
```r
68
76
cases<- pub_covidcast(
@@ -87,7 +95,7 @@ deaths <- pub_covidcast(
87
95
```
88
96
89
97
Since visualizing the results on every geography is somewhat
90
-
overwhelming, we’ll only train on a subset of 5.
98
+
overwhelming, we’ll only train on a subset of locations.
0 commit comments