Skip to content

Release Delphi Epidata 0.3.6 #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
936aef7
update weighted formulas for count and binary indicators
nmdefries Nov 12, 2021
3637083
Move some useful information up
capnrefsmmat Nov 12, 2021
0b03330
Simplify initial sections on CLI
capnrefsmmat Nov 12, 2021
41a7b1e
Reorganize and improve technical estimator detail docs
capnrefsmmat Nov 12, 2021
79d7a47
Merge pull request #788 from cmu-delphi/bot/sync-main-dev
krivard Dec 14, 2021
878a825
Point to our PNAS papers for citations
capnrefsmmat Oct 27, 2021
966bf24
Merge pull request #789 from cmu-delphi/survey/citation
krivard Dec 14, 2021
50984ed
Don't mention OUTAGES.txt anymore; point to data error page
capnrefsmmat Dec 17, 2021
20e58d3
Describe coding of race/ethnicity items
capnrefsmmat Dec 17, 2021
81b682f
feat: update gdoc to new category
sgratzl Jan 5, 2022
6b79a31
add final wave 12 to codebook
nmdefries Jan 5, 2022
8d81bb8
version with fewer quotes
nmdefries Jan 6, 2022
22549b4
remove Wave 12 exp treatment field
nmdefries Jan 6, 2022
b1abb3d
Merge pull request #792 from cmu-delphi/sgratzl/switch_categorization
sgratzl Jan 6, 2022
ab53c9c
Merge pull request #794 from cmu-delphi/update-codebook-final-wave12
capnrefsmmat Jan 7, 2022
6560254
Merge pull request #766 from cmu-delphi/correct-survey-se-defs
capnrefsmmat Jan 7, 2022
e3116d4
Describe temporary survey problem in December
capnrefsmmat Jan 7, 2022
b423a8e
Typo fix
capnrefsmmat Jan 7, 2022
fc6f859
Describe final version of Wave 12
capnrefsmmat Jan 7, 2022
0ae8586
chore: update docs
krivard Jan 7, 2022
cc29d08
Clarifications
capnrefsmmat Jan 7, 2022
b42d022
Merge pull request #802 from cmu-delphi/bot/update-docs
krivard Jan 7, 2022
b6d42e8
Merge pull request #801 from cmu-delphi/survey/updates
krivard Jan 7, 2022
17caf17
chore: release delphi-epidata 0.3.6
krivard Jan 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.5
current_version = 0.3.6
commit = False
tag = False

Expand Down
336 changes: 152 additions & 184 deletions docs/api/covidcast-signals/fb-survey.md

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion docs/api/covidcast_licensing.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ We request you attribute our data as follows:
> Data from Delphi COVIDcast. Obtained via the Delphi Epidata API.
> <https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html>

Academic publications may cite our paper:

> Alex Reinhart, Logan Brooks, Maria Jahja, Aaron Rumack, Jingjing Tang, et al.
> (2021). "An open repository of real-time COVID-19 indicators". *Proceedings of
> the National Academy of Sciences* 118 (51) e2111452118.
> <https://doi.org/10.1073/pnas.2111452118>

### Creative Commons: Attribution

These data sources are provided under the terms of the [Creative Commons
Expand All @@ -32,7 +39,7 @@ Attribution license](https://creativecommons.org/licenses/by/4.0/):
* [Indicator Combination](covidcast-signals/indicator-combination-inactive.md): signals
with names beginning `nmf_*`
* [Quidel](covidcast-signals/quidel.md)
* [Symptom Surveys](covidcast-signals/fb-survey.md)
* [COVID-19 Trends and Impact Survey](covidcast-signals/fb-survey.md)

You may use this data for any purpose, provided you attribute us as the original
source, as shown above.
Expand Down
117 changes: 117 additions & 0 deletions docs/symptom-survey/codebook.csv

Large diffs are not rendered by default.

172 changes: 105 additions & 67 deletions docs/symptom-survey/coding.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,40 @@ Beginning in Wave 11, the `module` column indicates which module the respondent
was randomly assigned to. See the [survey modules and randomization](modules.md)
information for more details.

Coding details for each survey wave follow.
### Privacy Restrictions

To prevent respondents from being identifiable in the response data, responses
with ZIP codes with populations of 100 or fewer have their location set to `NA`.
This affects item A3 in the individual response files. (This change was
implemented with the introduction of Wave 4. Previously, all ZIPs were
reported.)

Invalid ZIP codes are preserved unchanged, and these rows are reported in the
individual response files with their invalid ZIPs.

### Race and Ethnicity

Beginning in wave 4, items D6 and D7 ask respondents for race and ethnicity.
These columns are **not** available in the microdata files due to
reidentification concerns. Public contingency tables that aggregate by race and
other demographic variables [are available](contingency-tables.md).

Users with a specific need for these variables in microdata should contact us at
<delphi-survey-info@lists.andrew.cmu.edu> to discuss options for obtaining them,
as access can be provided under some restrictions.

In the contingency tables, and in the microdata files for users who have gained
permission to access this data, the `raceethnicity` column is coded based on the
following rules:

* If the respondent answers "Yes" to item D6, they are coded as Hispanic,
regardless of their answer to D7. If the respondent answers "No" to D6, the
following rules apply.
* Respondents who selected more than one racial group in D7, or who selected
"Some other race", are coded as "NonHispanicMultipleOther".
* Respondents who selected only one racial group in D7 are coded according to
that race, such as "NonHispanicAsian" or
"NonHispanicAmericanIndianAlaskaNative".

## Comprehensive Codebook

Expand Down Expand Up @@ -91,23 +123,6 @@ Available columns:
* `group_of_respondents_item_was_shown_to`: Module-based subset of respondents item was asked of. One of "all" (if item was included in the [Daily Core](modules.md) and asked of all respondents), "Module A", or "Module B".


## Privacy Restrictions

To prevent respondents from being identifiable in the response data, responses
with ZIP codes with populations of 100 or fewer have their location set to `NA`.
This affects item A3 in the individual response files. (This change was
implemented with the introduction of Wave 4. Previously, all ZIPs were
reported.)

Invalid ZIP codes are preserved unchanged, and these rows are reported in the
individual response files with their invalid ZIPs.

Additionally, beginning in wave 4, items D6 and D7 ask respondents for race and
ethnicity. These columns are **not** available in the microdata files due to
reidentification concerns. Users with a specific need for these variables should
contact us at <delphi-survey-info@lists.andrew.cmu.edu> to discuss options for
obtaining them. However, contingency tables that aggregate by race and other
demographic variables [are available](contingency-tables.md).


## Wave 1
Expand Down Expand Up @@ -471,7 +486,7 @@ new items were meant to capture reasons for vaccine hesitancy among respondents.

### New Items

* Item V2a ask respondents that have received a COVID-19 vaccine and indicated
* Item V2a asks respondents that have received a COVID-19 vaccine and indicated
that they have not had 2 doses of the vaccine whether they intend to get the
required doses.
* Items V5a-V5d and V6 were added to capture reasons for respondents not
Expand Down Expand Up @@ -775,6 +790,11 @@ are not anticipated to change the respondent’s answer.
might become seriously ill from CVOID-19?”) was removed.
* Item C17a (“Have you had a seasonal flu vaccination since July 1, 2020?”) was
removed.
* On November 8, 2021, item V2 “How many vaccinations have you received?” was
removed from Wave 11, as the response options did not allow for respondents to
report booster shots and additional doses. Booster doses were becoming more
common at this time, making the lack of booster response options jarring to
respondents.

### Notes

Expand All @@ -789,36 +809,43 @@ are not anticipated to change the respondent’s answer.

## Wave 12

Wave 12 was deployed on October 7, 2021. Deployment is in two phases:
Wave 12 was deployed on December 19, 2021, after an experimental phase in
October:

* Initially the survey was given only to 15% of survey respondents, the
remainder receiving Wave 11. This phase lasted until October 22. This phase
was used to conduct three experiments with (1) demographic module placement,
(2) vaccination uptake question, and (3) survey invitation text. Details of
these experiments can be found [below](#experiments). In data files, this is
marked as wave "12.5" to distinguish from the final version.
* After results of the experiments are analyzed, a final version will be
deployed using only one demographic module placement and one vaccine uptake
question. This will be marked as wave 12 in the data files.
* From October 7 to October 22, 2021, an experimental Wave 12 was given only to
15% of survey respondents, the remainder receiving Wave 11. This phase was
used to conduct three experiments with (1) demographic module placement, (2)
vaccination uptake question, and (3) survey invitation text. Details of these
experiments can be found [below](#experiments). In data files, this is marked
as wave "12.5" to distinguish from the final version. Data from the
experimental wave 12 was not included in the aggregates published in the
COVIDcast API or in our [contingency tables](contingency-tables.md).
* After results of the experiments were analyzed, the final version was deployed
on December 19, 2021. In data files, this is marked as wave 12.

Wave 12 is available in English and the languages introduced in Wave 3.

Files:
* [Wave 12 text and coding](waves/CMU Survey Wave 12.pdf) (PDF)
* [Wave 12 text and coding](waves/CMU Survey Wave 12.docx) (Word)

Besides the experiments, Wave 12 revises the schooling module of the survey
Besides the experiments, Wave 12 revised the schooling module of the survey
instrument and adds questions regarding parents’ intention to vaccinate their
children (under age 18). Please review the changes carefully when you use
children (under age 18). These schooling items are part of [Module B](modules.md)
of the survey. Please review the changes carefully when you use
responses from multiple waves of this survey.

### Demographic Module Placement

In the prior waves of CTIS, respondent demographics were collected towards the
end of the survey. These questions are now asked after the vaccine module of the
survey. This placement was chosen after the [order experiments described
below](#experiments) found that this ordering improved response rates to the
demographic items. We expect this will aid users who need demographic data for
their survey analyses.

### New Items

* Item V1alt asks respondents who they personally know has already received a
COVID-19 vaccine. Response options include themselves, household members, and
others. This is an alternate form of the item capturing vaccine uptake, and is
part of the vaccination uptake question experiment described
[below](#experiments).
* Item P1 asks if the respondent is a parent or legal guardian of a child under
age 18.
* Item P2 asks respondents the age group of their oldest child. This replaces
Expand All @@ -832,16 +859,18 @@ responses from multiple waves of this survey.
* Item P6 asks respondent about the preventative measures that apply if their
oldest child is attending any in-person classes. These response options are a
subset of response options from E3 with several new additions.
* In the experimental phase, item V1alt asked respondents who they personally
know has already received a COVID-19 vaccine. Response options include
themselves, household members, and others. This is an alternate form of item
V1 capturing vaccine uptake, and is part of the vaccination uptake question
experiment described [below](#experiments). In the final version of Wave 12,
item V1alt is not used and item V1 remains unchanged.

### Changed Items

* Item B13a asks respondents “Have you ever had coronavirus (COVID-19)?” and
replaces item B13 “As far as you know, have you ever had coronavirus
(COVID-19)?” for ease of translation.
* The vaccination uptake question experiment uses questions V1 and V1alt.
Subsequently, questions that use V1 in the display logic have been updated to
also include respondents who are asked V1alt. The display logic has been
updated for the following questions: V2, V11a, V3a, V5a, V12a, V16, and V9
* Item V5a, V5b and V5c have the following revisions to response options:
* The response option “I don’t like vaccines” was revised to “I don’t like
vaccines generally” to distinguish from a specific dislike of COVID-19
Expand All @@ -855,6 +884,11 @@ responses from multiple waves of this survey.
added: “The available appointment locations did not work for me” and “Other”
* Item V15b has two new response options: “The available appointment locations
did not work for me” and “Other”.
* The vaccination uptake question experiment, part of the experimental version
of Wave 12, used questions V1 and V1alt. During the experiment, questions that
use V1 in the display logic were updated to also include respondents who are
asked V1alt. The display logic was updated for the following questions: V2,
V11a, V3a, V5a, V12a, V16, and V9.

### Removed Items

Expand All @@ -871,41 +905,45 @@ responses from multiple waves of this survey.

Wave 12 was initially launched to 15% of respondents to collect data for the
experiments described below. (The remaining 85% continued to receive Wave 11.)
After the experiments have been conducted and the data analyzed; the CTIS team
will finalize the Wave 12 instrument to be distributed to the entire sample.
Wave 12 will consist of three experiments with (1) demographic module placement,
(2) vaccination uptake question, and (3) survey invitation text.
This experiment was run from October 7 to October 22, 2021. After the
experiments were conducted and the data analyzed, the CTIS team finalized the
Wave 12 instrument to be distributed to the entire sample. This finalized
version was deployed on December 19, 2021.

The Wave 12 trial phase consisted of three experiments with (1) demographic
module placement, (2) vaccination uptake question, and (3) survey invitation
text.

#### Demographic Module Placement and Vaccine Uptake Question

The 15% of respondents who receive the experimental Wave 12 will be divided into
The 15% of respondents who received the experimental Wave 12 were divided into
three groups:

* Group 1 (5% of respondents) will see the demographics questions after the
symptom module, which concludes with question B2b “For how many days have you
had at least one new or unusual symptom?” This group of respondents will see
the Wave 11 version of the vaccine uptake question (V1).
* Group 2 (5% of respondents) will see the demographics questions after the
COVID vaccine module, which concludes with question V9 “How concerned are you
that you would experience a side effect from a COVID-19 vaccination?” This
group of respondents will see the Wave 11 version of the vaccine uptake
question (V1).
* Group 3 (5% of respondents) will see the experimental form of the vaccination
* Group 1 (5% of respondents) saw the demographics questions after the symptom
module, which concludes with question B2b “For how many days have you had at
least one new or unusual symptom?” This group of respondents saw the Wave 11
version of the vaccine uptake question (V1).
* Group 2 (5% of respondents) saw the demographics questions after the COVID
vaccine module, which concludes with question V9 “How concerned are you that
you would experience a side effect from a COVID-19 vaccination?” This group of
respondents saw the Wave 11 version of the vaccine uptake question (V1).
* Group 3 (5% of respondents) saw the experimental form of the vaccination
uptake question (V1alt), which asks respondents “Do you personally know anyone
who has received the COVID-19 vaccine already?” Response options include
themselves, household members, and others. These respondents will not receive
the previous vaccine uptake question, V1. They will see the demographic
questions in the Wave 11 placement, at the end of Module A/B and before the
occupation questions.
themselves, household members, and others. These respondents did not receive
the previous vaccine uptake question, V1. They saw the demographic questions
in the Wave 11 placement, at the end of Module A/B and before the occupation
questions.

A new column `w12_treatment` in the microdata files will indicate which of the
three groups above each respondent was assigned to.
A new column `w12_treatment` in the microdata files indicates which of the three
groups above each respondent was assigned to.

#### Survey Invitation Text

Our partners at Facebook will also be conducting an experiment among those
allocated to receive Wave 11. Among those participants, 6% will receive will
receive one of six different invitations to the survey on their News Feed. This
will be an internal Facebook experiment conducted with the goal of improving
response rates and exploring additional non-response bias in the weighting
process. More details will be provided when the survey invitation is finalized.
During the Wave 12 experiment period, our partners at Facebook conducted an
experiment among those respondents allocated to receive Wave 11. Among those
participants, 6% will receive will receive one of six different invitations to
the survey on their News Feed. This will be an internal Facebook experiment
conducted with the goal of improving response rates and exploring additional
non-response bias in the weighting process. More details will be provided when
the survey invitation is finalized.
6 changes: 3 additions & 3 deletions docs/symptom-survey/contingency-tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ general public.
Please see our survey [credits](index.md#credits) and [citation information](index.md#citing-the-survey)
for information on how to cite this data if you use it in a publication.

Important updates for data users, including corrections to data or updates on
data processing delays, are posted as `OUTAGES.txt` in the directory where the
data is hosted.
Our [Data and Sampling Errors](problems.md) documentation lists important
updates for data users, including corrections to data or updates on data
processing delays.

## Table of contents
{: .no_toc .text-delta}
Expand Down
15 changes: 8 additions & 7 deletions docs/symptom-survey/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ the survey in publications based on the data. Specifically, we ask that you:

1. Include the acknowledgment "This research is based on survey results from
Carnegie Mellon University’s Delphi Group."
2. Cite this web page for details about the survey. For example, you may cite it
as
2. Cite our paper describing the survey:

> Delphi Group (2021). COVID-19 Trends and Impact Survey.
> <https://cmu-delphi.github.io/delphi-epidata/symptom-survey/>
> Joshua A. Salomon, Alex Reinhart, Alyssa Bilinski, Eu Jing Chua, Wichada
> La Motte-Kerr, Minttu M. Rönn, Marissa Reitsma, Katherine Ann Morris,
> Sarah LaRocca, Tamar Farag, Frauke Kreuter, Roni Rosenfeld, and Ryan J.
> Tibshirani (2021). "The US COVID-19 Trends and Impact Survey: Continuous
> real-time measurement of COVID-19 symptoms, risks, protective behaviors,
> testing, and vaccination", *Proceedings of the National Academy of
> Sciences* 118 (51) e2111454118. <https://doi.org/10.1073/pnas.2111454118>

A journal article describing the survey and its methods is currently in
preparation, and we will update this page when it is available so that you
can cite it instead.
3. The data use agreement requires that if you disclose survey microdata, Delphi
must agree on the aggregation method that you will use to ensure reported
estimates do not disclose any individual identifiable information, including
Expand Down
6 changes: 6 additions & 0 deletions docs/symptom-survey/problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ interpretation of results. All problems will be logged here.
1. TOC
{:toc}

## Temporary Suspension (December 16-17, 2021)

Due to a temporary problem affecting Facebook's systems, survey invitations were
suspended between 11:39am PT on December 16, 2021 and 1:20am PT on December
17, 2021. Invitations resumed as usual once the problem was resolved.

## Incorrect Wave Sampling (June-August, 2021)

A sampling error caused a portion of our respondents to be accidentally sent the
Expand Down
2 changes: 1 addition & 1 deletion src/client/delphi_epidata.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Epidata <- (function() {
# API base url
BASE_URL <- 'https://delphi.cmu.edu/epidata/api.php'

client_version <- '0.3.5'
client_version <- '0.3.6'

# Helper function to cast values and/or ranges to strings
.listitem <- function(value) {
Expand Down
2 changes: 1 addition & 1 deletion src/client/delphi_epidata.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
})(this, function (exports, fetchImpl, jQuery) {
const BASE_URL = "https://delphi.cmu.edu/epidata/";
const client_version = "0.3.5";
const client_version = "0.3.6";

// Helper function to cast values and/or ranges to strings
function _listitem(value) {
Expand Down
2 changes: 1 addition & 1 deletion src/client/packaging/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "delphi_epidata",
"description": "Delphi Epidata API Client",
"authors": "Delphi Group",
"version": "0.3.5",
"version": "0.3.6",
"license": "MIT",
"homepage": "https://github.com/cmu-delphi/delphi-epidata",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/client/packaging/pypi/delphi_epidata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .delphi_epidata import Epidata

name = 'delphi_epidata'
__version__ = '0.3.5'
__version__ = '0.3.6'
2 changes: 1 addition & 1 deletion src/client/packaging/pypi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="delphi_epidata",
version="0.3.5",
version="0.3.6",
author="David Farrow",
author_email="dfarrow0@gmail.com",
description="A programmatic interface to Delphi's Epidata API.",
Expand Down
2 changes: 1 addition & 1 deletion src/server/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

load_dotenv()

VERSION = "0.3.5"
VERSION = "0.3.6"

MAX_RESULTS = int(10e6)
MAX_COMPATIBILITY_RESULTS = int(3650)
Expand Down
Loading