Skip to content

Commit 9f52d08

Browse files
committed
init
0 parents  commit 9f52d08

39 files changed

+1059
-0
lines changed

.Rbuildignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
^.*\.Rproj$
2+
^\.Rproj\.user$
3+
^data-raw$
4+
^LICENSE\.md$

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData
4+
.Ruserdata
5+
.DS_Store

DESCRIPTION

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Type: Package
2+
Package: epidatasets
3+
Title: Epidemiological Data for Delphi Tooling Examples
4+
Version: 0.0.1
5+
Authors@R:
6+
person(c("Daniel", "J."), "McDonald", , "[email protected]", role = c("cre", "aut"))
7+
Description: This package contains data sets used to compile vignettes and
8+
other documentation in Delphi R Packages. The goal is to avoid calls
9+
to the Delphi Epidata API, and deposit some examples here for easy
10+
offline use.
11+
License: MIT + file LICENSE
12+
Depends:
13+
R (>= 2.10)
14+
Suggests:
15+
covidcast,
16+
dplyr,
17+
epidatr,
18+
epipredict,
19+
here,
20+
lubridate,
21+
magrittr,
22+
purrr,
23+
readr
24+
Remotes:
25+
cmu-delphi/epidatr,
26+
cmu-delphi/epipredict,
27+
cmu-delphi/epiprocess
28+
Encoding: UTF-8
29+
LazyData: true
30+
RoxygenNote: 7.2.3

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
YEAR: 2023
2+
COPYRIGHT HOLDER: epidatasets authors

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2023 epidatasets authors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Generated by roxygen2: do not edit by hand
2+

R/epipredict-data.R

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
#' Subset of JHU daily state cases and deaths
2+
#'
3+
#' This data source of confirmed COVID-19 cases and deaths
4+
#' is based on reports made available by the Center for
5+
#' Systems Science and Engineering at Johns Hopkins University.
6+
#' This example data ranges from Dec 31, 2020 to Dec 31, 2021,
7+
#' and includes all states.
8+
#'
9+
#' @format A tibble with 20,496 rows and 4 variables:
10+
#' \describe{
11+
#' \item{geo_value}{the geographic value associated with each row
12+
#' of measurements.}
13+
#' \item{time_value}{the time value associated with each row of measurements.}
14+
#' \item{case_rate}{7-day average signal of number of new
15+
#' confirmed COVID-19 cases per 100,000 population, daily}
16+
#' \item{death_rate}{7-day average signal of number of new confirmed
17+
#' deaths due to COVID-19 per 100,000 population, daily}
18+
#' }
19+
#' @source This object contains a modified part of the
20+
#' \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University}
21+
#' as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}.
22+
#' This data set is licensed under the terms of the
23+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
24+
#' by the Johns Hopkins University on behalf of its Center for Systems Science
25+
#' in Engineering. Copyright Johns Hopkins University 2020.
26+
#'
27+
#' Modifications:
28+
#' * \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{From the COVIDcast Epidata API}:
29+
#' These signals are taken directly from the JHU CSSE
30+
#' \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 GitHub repository}
31+
#' without changes. The 7-day average signals are computed by Delphi by
32+
#' calculating moving averages of the preceding 7 days, so the signal for
33+
#' June 7 is the average of the underlying data for June 1 through 7,
34+
#' inclusive.
35+
"covid_case_death_rates"
36+
37+
#' State population data
38+
#'
39+
#' Data set on state populations, from the 2019 US Census.
40+
#'
41+
#' @format Data frame with 57 rows (including one for the United States as a
42+
#' whole, plus the District of Columbia, Puerto Rico Commonwealth,
43+
#' American Samoa, Guam, the U.S. Virgin Islands, and the Northern Mariana,
44+
#' Islands).
45+
#'
46+
#' \describe{
47+
#' \item{fips}{FIPS code}
48+
#' \item{name}{Full name of the state or territory}
49+
#' \item{pop}{Estimate of the location's resident population in
50+
#' 2019.}
51+
#' \item{abbr}{Postal abbreviation for the location}
52+
#' }
53+
#'
54+
#' @source United States Census Bureau, at
55+
#' \url{https://www2.census.gov/programs-surveys/popest/datasets/2010-2019/counties/totals/co-est2019-alldata.pdf},
56+
#' \url{https://www.census.gov/data/tables/time-series/demo/popest/2010s-total-puerto-rico-municipios.html},
57+
#' and \url{https://www.census.gov/data/tables/2010/dec/2010-island-areas.html}
58+
"state_census"
59+
60+
# Epipredict Vignette Data ----------------------------------------------------
61+
62+
#' CTIS COVID Behaviours
63+
#'
64+
#' Data set for a handful of states on masking and distancing behaviours
65+
#' during the COVID-19 Pandemic and downloaded from the CMU Delphi COVIDcast
66+
#' Epidata API. This data set covers the period from
67+
#' June to December 2021.
68+
"ctis_covid_behaviours"
69+
70+
#' COVID-19 Incident Cases and Deaths
71+
#'
72+
#' Data set for 5 states containing COVID-19 Incident Cases and Deaths as
73+
#' reported
74+
#' by JHU-CSSE and downloaded from the CMU Delphi COVIDcast Epidata API.
75+
#' This data set covers the period from June 2021 to December 2021, and is
76+
#' used in the [epipredict] Vignette on ... .
77+
#'
78+
#' @source This object contains a modified part of the \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University} as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}. This data set is licensed under the terms of the
79+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
80+
#' by the Johns Hopkins University on behalf of its Center for Systems Science in Engineering.
81+
#' Copyright Johns Hopkins University 2020.
82+
"counts_subset"

R/epiprocess-data.R

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
#' Subset of JHU daily state cases and deaths
2+
#'
3+
#' This data source of confirmed COVID-19 cases and deaths
4+
#' is based on reports made available by the Center for
5+
#' Systems Science and Engineering at Johns Hopkins University.
6+
#' This example data ranges from Mar 1, 2020 to Dec 31, 2021, and is limited to
7+
#' California, Florida, Texas, New York, Georgia, and Pennsylvania.
8+
#'
9+
#' @format A tibble with 4026 rows and 6 variables:
10+
#' \describe{
11+
#' \item{geo_value}{the geographic value associated with each row
12+
#' of measurements.}
13+
#' \item{time_value}{the time value associated with each row of measurements.}
14+
#' \item{case_rate_7d_av}{7-day average signal of number of new
15+
#' confirmed COVID-19 cases per 100,000 population, daily}
16+
#' \item{death_rate_7d_av}{7-day average signal of number of new confirmed
17+
#' deaths due to COVID-19 per 100,000 population, daily}
18+
#' \item{cases}{Number of new confirmed COVID-19 cases, daily}
19+
#' \item{cases_7d_av}{7-day average signal of number of new confirmed
20+
#' COVID-19 cases, daily}
21+
#' }
22+
#' @source This object contains a modified part of the
23+
#' \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University}
24+
#' as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}.
25+
#' This data set is licensed under the terms of the
26+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
27+
#' by the Johns Hopkins University on behalf of its Center for Systems Science
28+
#' in Engineering. Copyright Johns Hopkins University 2020.
29+
#'
30+
#' Modifications:
31+
#' * \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{From the COVIDcast Epidata API}:
32+
#' These signals are taken directly from the JHU CSSE
33+
#' \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 GitHub repository}
34+
#' without changes. The 7-day average signals are computed by Delphi by
35+
#' calculating moving averages of the preceding 7 days, so the signal for
36+
#' June 7 is the average of the underlying data for June 1 through 7,
37+
#' inclusive.
38+
#' * Furthermore, the data has been limited to a very small number of rows,
39+
#' the signal names slightly altered, and formatted into a tibble.
40+
# Named "jhu_csse_daily_subset" in {epiprocess}
41+
"cases_deaths_subset"
42+
43+
#' Subset of daily doctor visits and cases in archive format
44+
#'
45+
#' This data source is based on information about outpatient visits,
46+
#' provided to us by health system partners, and also contains confirmed
47+
#' COVID-19 cases based on reports made available by the Center for
48+
#' Systems Science and Engineering at Johns Hopkins University.
49+
#' This example data ranges from June 1, 2020 to Dec 1, 2021, and
50+
#' is also limited to California, Florida, Texas, and New York.
51+
#'
52+
#' @format An `epi_archive$DT` data format. The data table DT has 129,638 rows and 5 columns:
53+
#' \describe{
54+
#' \item{geo_value}{the geographic value associated with each row of measurements.}
55+
#' \item{time_value}{the time value associated with each row of measurements.}
56+
#' \item{version}{the time value specifying the version for each row of measurements. }
57+
#' \item{percent_cli}{percentage of doctor’s visits with CLI (COVID-like illness) computed from medical insurance claims}
58+
#' \item{case_rate_7d_av}{7-day average signal of number of new confirmed deaths due to COVID-19 per 100,000 population, daily}
59+
#' }
60+
#' @source
61+
#' This object contains a modified part of the \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University} as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}. This data set is licensed under the terms of the
62+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
63+
#' by Johns Hopkins University on behalf of its Center for Systems Science in Engineering.
64+
#' Copyright Johns Hopkins University 2020.
65+
#'
66+
#' Modifications:
67+
#' * \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/doctor-visits.html}{From the COVIDcast Doctor Visits API}: The signal `percent_cli` is taken directly from the API without changes.
68+
#' * \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{From the COVIDcast Epidata API}: `case_rate_7d_av` signal was computed by Delphi from the original JHU-CSSE data by calculating moving averages of the preceding 7 days, so the signal for June 7 is the average of the underlying data for June 1 through 7, inclusive.
69+
#' * Furthermore, the data is a subset of the full dataset, the signal names slightly altered, and formatted into a tibble.
70+
# This is named "archive_cases_dv_subset" in {epiprocess}
71+
"archive_cases_dv_subset_dt"
72+
73+
74+
#' Subset of JHU daily cases from California and Florida
75+
#'
76+
#' This data source of confirmed COVID-19 cases
77+
#' is based on reports made available by the Center for
78+
#' Systems Science and Engineering at Johns Hopkins University.
79+
#' This example data is a snapshot as of Oct 28, 2021 and captures the cases
80+
#' from June 1, 2020 to May 31, 2021
81+
#' and is limited to California and Florida.
82+
#'
83+
#' @format A tibble with 730 rows and 3 variables:
84+
#' \describe{
85+
#' \item{geo_value}{the geographic value associated with each row of measurements.}
86+
#' \item{time_value}{the time value associated with each row of measurements.}
87+
#' \item{cases}{Number of new confirmed COVID-19 cases, daily}
88+
#' }
89+
#' @source This object contains a modified part of the \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University} as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}. This data set is licensed under the terms of the
90+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
91+
#' by the Johns Hopkins University on behalf of its Center for Systems Science in Engineering.
92+
#' Copyright Johns Hopkins University 2020.
93+
#'
94+
#' Modifications:
95+
#' * \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{From the COVIDcast Epidata API}:
96+
#' These signals are taken directly from the JHU CSSE \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 GitHub repository} without changes.
97+
#' * Furthermore, the data has been limited to a very small number of rows, the signal names slightly altered, and formatted into a tibble.
98+
"covid_incidence_outliers"
99+
100+
#' Subset of JHU daily cases from counties in Massachusetts and Vermont
101+
#'
102+
#' This data source of confirmed COVID-19 cases and deaths
103+
#' is based on reports made available by the Center for
104+
#' Systems Science and Engineering at Johns Hopkins University.
105+
#' This example data ranges from Mar 1, 2020 to Dec 31, 2021,
106+
#' and is limited to Massachusetts and Vermont.
107+
#'
108+
#' @format A tibble with 16,212 rows and 5 variables:
109+
#' \describe{
110+
#' \item{geo_value}{the geographic value associated with each row of measurements.}
111+
#' \item{time_value}{the time value associated with each row of measurements.}
112+
#' \item{cases}{Number of new confirmed COVID-19 cases, daily}
113+
#' \item{county_name}{the name of the county}
114+
#' \item{state_name}{the full name of the state}
115+
#' }
116+
#' @source This object contains a modified part of the \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University} as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}. This data set is licensed under the terms of the
117+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
118+
#' by the Johns Hopkins University on behalf of its Center for Systems Science in Engineering.
119+
#' Copyright Johns Hopkins University 2020.
120+
#'
121+
#' Modifications:
122+
#' * \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{From the COVIDcast Epidata API}: These signals are taken directly from the JHU CSSE \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 GitHub repository} without changes. The 7-day average signals are computed by Delphi by calculating moving averages of the preceding 7 days, so the signal for June 7 is the average of the underlying data for June 1 through 7, inclusive.
123+
#' * Furthermore, the data has been limited to a very small number of rows, the signal names slightly altered, and formatted into a tibble.
124+
# This is named "jhu_csse_county_level_subset" in {epiprocess}
125+
"covid_incidence_county_subset"
126+
127+
#' COVID Incident Cases Outlier Example
128+
#'
129+
#' Data set for 2 states containing COVID-19 Incident Cases as reported
130+
#' by JHU-CSSE and Downloaded from the CMU Delphi COVIDcast Epidata API.
131+
#' This data set covers the period from June 2020 to May 2021, and is
132+
#' used in the [epiprocess] Vignette on Outliers.
133+
#'
134+
#' @source This object contains a modified part of the \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University} as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}. This data set is licensed under the terms of the
135+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
136+
#' by the Johns Hopkins University on behalf of its Center for Systems Science in Engineering.
137+
#' Copyright Johns Hopkins University 2020.
138+
"covid_incidence_outliers"
139+
140+
#' COVID Cumulative Cases Example
141+
#'
142+
#' Data set for 4 states containing COVID-19 Cumulative Cases as reported
143+
#' by JHU-CSSE and downloaded from the CMU Delphi COVIDcast Epidata API.
144+
#' This data set covers the period from March 2020 to January 2022, and is
145+
#' used in the [epiprocess] Vignette on ... .
146+
#'
147+
#' @source This object contains a modified part of the \href{https://github.com/CSSEGISandData/COVID-19}{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University} as \href{https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/jhu-csse.html}{republished in the COVIDcast Epidata API}. This data set is licensed under the terms of the
148+
#' \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International license}
149+
#' by the Johns Hopkins University on behalf of its Center for Systems Science in Engineering.
150+
#' Copyright Johns Hopkins University 2020.
151+
"jhu_confirmed_cumulative_num"
152+

0 commit comments

Comments
 (0)