diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..3825fce8a --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# default owners for anything not listed below +* @rlunde @melange396 @carlynvandyke diff --git a/.github/workflows/blog.yaml b/.github/workflows/blog.yaml index 5fed9c2ed..8f532af8a 100644 --- a/.github/workflows/blog.yaml +++ b/.github/workflows/blog.yaml @@ -14,7 +14,7 @@ jobs: run: shell: bash -l {0} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 3 - uses: mamba-org/provision-with-micromamba@v16 @@ -37,7 +37,7 @@ jobs: run: | Rscript ./dependencies.R - name: Restore Blogdown Cache - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 with: path: | ./blogdown @@ -55,4 +55,4 @@ jobs: name: blog path: | ./content/blog - ./static/blog \ No newline at end of file + ./static/blog diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 508b3a64f..7333eaacb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,15 +6,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 3 # Fetch all history for .GitInfo and .Lastmod - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 16 - - uses: actions/cache@v3.3.1 + - uses: actions/cache@v3.3.2 with: path: ~/.npm key: ${{ runner.os }}-node3-${{ hashFiles('**/package-lock.json') }} @@ -38,9 +38,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: cmu-delphi-deploy-machine diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index a94368bb6..cea473299 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }} @@ -32,7 +32,7 @@ jobs: base: main title: Release ${{ steps.version.outputs.next_tag }} labels: chore - # reviewers: + # reviewers: assignees: melange396 body: | Releasing ${{ steps.version.outputs.next_tag }}. diff --git a/.github/workflows/dependabot-assignments.yml b/.github/workflows/dependabot-assignments.yml index 97bbd061e..b511425f2 100644 --- a/.github/workflows/dependabot-assignments.yml +++ b/.github/workflows/dependabot-assignments.yml @@ -7,11 +7,11 @@ permissions: jobs: dependabot: runs-on: ubuntu-latest - env: - GH_TOKEN: ${{ secrets.CMU_DELPHI_AUTOMATION_MACHINE_DEPENDABOT_PAT }} + env: + GH_TOKEN: ${{ secrets.CMU_DELPHI_AUTOMATION_MACHINE_DEPENDABOT_PAT }} if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Assign team to PR run: gh pr edit "$PR_URL" --add-reviewer "cmu-delphi/code-reviewers" env: - PR_URL: ${{github.event.pull_request.html_url}} \ No newline at end of file + PR_URL: ${{github.event.pull_request.html_url}} diff --git a/.github/workflows/release_main.yml b/.github/workflows/release_main.yml index 25f9828f9..1e4e061b6 100644 --- a/.github/workflows/release_main.yml +++ b/.github/workflows/release_main.yml @@ -17,8 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - name: Extract version @@ -42,12 +42,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - name: Cache Node.js modules - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: ${{ runner.OS }}-node2-${{ hashFiles('**/package-lock.json') }} @@ -57,7 +57,7 @@ jobs: - name: Build Assets run: npm pack - name: Upload Release Asset - uses: AButler/upload-release-assets@v2.0 + uses: AButler/upload-release-assets@v3.0 with: files: "www-main-*.tgz" repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -68,7 +68,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: dev ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }} diff --git a/.prettierrc.js b/.prettierrc.js index 1b522730e..c96ff17a7 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -2,7 +2,7 @@ module.exports = { printWidth: 120, semi: true, trailingComma: "es5", - + plugins: ["prettier-plugin-go-template"], overrides: [ { files: ["*.html"], diff --git a/README.md b/README.md index e94923272..0bfae9ebb 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ As an alternative you can use Docker and Docker Compose: 1. `docker-compose up -d` to create a docker container for the current environment. 1. `docker-compose exec r bash` to jump into the container. 1. `micromamba activate www-main` to activate the environment +2. `export API_KEY=y0urAp1kEy` to add your own api key as env variable. Now you have the environment ready to start converting .Rmd blog files to html. #### Commands diff --git a/assets/images/landing-page/hero-images/landing-pg-hero-_cfa_oadm.jpg b/assets/images/landing-page/hero-images/landing-pg-hero-_cfa_oadm.jpg new file mode 100644 index 000000000..389e08dc9 Binary files /dev/null and b/assets/images/landing-page/hero-images/landing-pg-hero-_cfa_oadm.jpg differ diff --git a/content/_index.md b/content/_index.md index 9882c3d6c..bbbaf1004 100644 --- a/content/_index.md +++ b/content/_index.md @@ -9,11 +9,11 @@ carousel: ref: covidcast alt: Explore the COVIDcast Dashboard image: covidcast_v2.jpg - - pre: Delphi Careers - title: We're Hiring! - ref: careers - alt: View Open Positions - image: landing-pg_hero-img-3.jpg + - pre: News + title: CDC Selects Delphi Research Group at CMU as Center of Innovation in Outbreak Analytics and Disease Modeling + link: https://www.cs.cmu.edu/news/2023/delphi-cdc-center + alt: Learn More + image: landing-pg-hero-_cfa_oadm.jpg - pre: Tools title: Evaluation of COVID-19 Forecasts link: /forecast-eval diff --git a/content/about/_index.md b/content/about/_index.md index 0c5d93290..61e72ac20 100644 --- a/content/about/_index.md +++ b/content/about/_index.md @@ -35,34 +35,78 @@ We're a research group based out of Carnegie Mellon University dedicated to deve Public health authorities (federal, state, local), the healthcare industry, the public and private sectors, fellow researchers working on epidemic tracking and forecasting, data journalists, and the general public. -### Delphi's milestones +### Milestones -In reverse chronological order. +* **September 2023.** We were selected to be a Center of Innovation in Outbreak Analytics and Disease Modeling by the Centers for Disease Control and Prevention’s [Center for Forecasting and Outbreak Analytics](https://www.cdc.gov/forecast-outbreak-analytics/index.html). We are one of thirteen centers serving as the core of [Insight Net](https://www.cdc.gov/forecast-outbreak-analytics/partners/insightnet/index.html). -- **April 2020.** We began supporting and advising the U.S. CDC's - community-driven COVID-19 forecasting effort, including creating and - maintaining an ensemble forecast from the models submitted to the - [COVID-19 Forecast Hub](https://covid19forecasthub.org), and a [forecast - evaluation dashboard](https://delphi.cmu.edu/forecast-eval/). +* **March 2023.** With the sunsetting of regular COVID-19 Case reporting by both JHU CSSE and USAFacts, we are no longer focusing on case tracking and forecasting and are now prioritizing COVID and influenza-related hospitalizations, and on gearing up for tracking other circulating and emerging pathogens. -- **March 2020.** We launched [COVIDcast]({{< relref "covidcast" >}}), the - nation's largest public repository of diverse, real-time indicators of - COVID-19 activity, freely accessible through the [Epidata API]({{< apiref - "api/covidcast.html" >}}), which is updated daily with the latest data. +* **February 2023.** We commenced a new project supporting the [CDC’s Center for Outbreak Forecasting and Analytics](https://www.cdc.gov/forecast-outbreak-analytics/index.html), which includes, among other goals, the prototyping of federated epidemic surveillance. -- **2019.** We became a CDC National Center of Excellence for Influenza - Forecasting, one of two nationally (and a 5-year designation). +* **September 2022.** We launched [Epidata v4](https://delphi.cmu.edu/blog/2022/12/14/introducing-epidata-v4/), prioritizing fast access to the most up-to-date data while retaining the deep data revision history needed by researchers. -- **2016.** We developed and deployed - [influenza nowcasts](https://delphi.cmu.edu/nowcast/) for the CDC, state - departments of public health, and the public. +* **June 2022.** We ended data collection for the [COVID-19 Trends and Impact Survey (CTIS)](https://delphi.cmu.edu/covid19/ctis/) after more than two years, during which we received 29.5 million survey responses in the US (and [well over 100m globally](https://covidmap.umd.edu/)). + +* **April 2022.** We received the [Allen Newell Award for Research Excellence in SCS at CMU](https://www.cs.cmu.edu/events/newell-award), which is awarded annually and recognizes an outstanding body of work that epitomizes Allen Newell's research style. + +* **April 2022.** We received [the Policy Impact Award and the Warren J. Mitofsky Innovators Award from the the American Association of Public Opinion Research (AAPOR)](https://www.cs.cmu.edu/news/2022/delphi-aapor-awards), along with our partners from the University of Maryland Social Data Science Center and Meta, for our work on the [COVID-19 Trends and Impact Survey](https://delphi.cmu.edu/covid19/ctis/) (CTIS). + +* **January 2022.** We added selected signals from the White House COVID-19 Data Strategy and Execution Workgroup’s [Community Profile Report (CPR)](https://healthdata.gov/Health/COVID-19-Community-Profile-Report/gqxm-d9w9), including hospital admission and vaccination rates. This data source was discontinued in February 2023. + +* **January 2022.** After the CDC paused flu forecasting for the 2020-2021 season due to too little flu activity, we restarted generating flu forecasts for the 2021-2022 flu season. + +* **December 2021.** Our work was highlighted in a Proceedings of the National Academy of Sciences Special Feature, ["Beyond Cases and Deaths: The Benefits of Auxiliary Data Streams In Tracking the COVID-19 Pandemic"](https://www.pnas.org/topic/548) + +* **May 2021.** We received the 2021 [Statistical Partnerships Among Academe, Industry, and Government (SPAIG) award](https://www.cmu.edu/dietrich/news/news-stories/2021/may/spaig-covid.html) from the American Statistical Association (ASA) along with our COVIDcast collaborators. + +* **April 2021.** We launched our redesigned website, which included [COVIDcast 2.0](https://delphi.cmu.edu/covidcast/). + +* **March 2021.** We added PCR testing data from [COVID Act Now](https://covidactnow.org/). These data were discontinued in December 2021. + +* **January 2021.** We added signals on adult and pediatric COVID hospitalizations from the U.S. Department of Health & Human Services. In particular, we include the sum of all confirmed adult and pediatric COVID-19 hospital admissions. This sum is used as the "ground truth" for hospitalizations by the [COVID-19 Forecast Hub](https://covid19forecasthub.org/). + +* **December 2020.** We added national provisional death counts, from the National Center for Health Statistics (NCHS). [These data are](https://www.cdc.gov/nchs/nvss/vsrr/COVID19/index.htm)[ based on death certificate data received and coded by NCHS](https://www.cdc.gov/nchs/nvss/vsrr/COVID19/index.htm). + +* **December 2020.** We added inpatient and outpatient COVID-19 signals based on aggregated statistics from medical claims, provided to us by [Change Healthcare](https://www.changehealthcare.com/). + +* **November 2020.** Shifting from our original Google Health Trends data source, we added our Google Symptoms signals, which estimate the volume of searches mapped to symptom sets related to COVID-19. + +* **October 2020.** [Thirteen volunteer Googlers joined our group](https://www.cmu.edu/news/stories/archives/2020/september/covidcast-google.html) for six months via [Google.org Fellowships](https://www.google.org/our-approach/), bringing in professional experience and dramatically increasing our productivity. + +* **September 2020.** [The COVID-19 Symptom Data Challenge was launched](https://healthpolicy.duke.edu/events/covid-19-symptom-data-challenge). Sponsored by Delphi along with Meta, University of Maryland, the Duke Margolis Center for Health Policy, and Resolve to Save Lives, the Challenge asked participants to "enable earlier detection and improved situational awareness of the outbreak" using [CTIS data](https://delphi.cmu.edu/covidcast/survey-results/). + +* **August 2020.** We built upon our pre-pandemic relationship with Quidel and added signals based on positivity rates of their COVID-19 antigen tests. This data source was discontinued in August 2023. + +* **June 2020.** We added several new data sources, including: + + * Anonymized location data from mobile phones from [Safegraph](https://www.safegraph.com/). This source was discontinued in July 2022. + + * County-level confirmed COVID-19 case and death data from [USAFacts](https://usafacts.org/). This source was deactivated in January 2023. + + * Inpatient and outpatient COVID-19 hospitalization signals we derived from aggregated statistics from medical claims, provided to us by [Optum](https://www.optum.com/). + +* **May 2020.** We added signals for COVID-19 Cases and Deaths, mirrored from the [Center for Systems Science and Engineering](https://systems.jhu.edu/research/public-health/ncov/) at Johns Hopkins University. + +* **April 2020.** We partnered with Meta to launch the [COVID-19 Trends and Impact Survey (CTIS)](https://delphi.cmu.edu/covid19/ctis/) to monitor in real-time the spread and impact of the COVID-19 pandemic in the United States. + +* **April 2020.** We added signals from two new data sources: + + * Signals related to COVID-related doctor visits, derived from aggregated statistics from medical claims, provided to us by [Optum](https://www.optum.com/). + + * Data from Google Health Trends, which estimate the volume of COVID-related searches in a given location, on a given day. This data source was discontinued in March 2021. + +* **April 2020.** We began supporting and advising the U.S. CDC’s community-driven COVID-19 forecasting effort, including creating and maintaining an ensemble forecast from the models submitted to the [COVID-19 Forecast Hub](https://covid19forecasthub.org/), and a [forecast evaluation dashboard](https://delphi.cmu.edu/forecast-eval/). + +* **March 2020.** Working with Brett Slatkin (head of Google Surveys) and Hal Varian (Google’s Chief Economist), we launched our [Google Symptom Survey](https://delphi.cmu.edu/blog/2020/09/18/covid-19-symptom-surveys-through-google/), which ended in May 2020. + +* **March 2020.** We launched [COVIDcast](https://delphi.cmu.edu/covidcast/), the nation’s largest public repository of diverse, real-time indicators of COVID-19 activity, freely accessible through the [Epidata API](https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html), which is updated daily with the latest data. + +* **2019.** We became a CDC National Center of Excellence for Influenza Forecasting, one of two nationally (and a 5-year designation). + +* **2016.** We developed and deployed [influenza nowcasts](https://delphi.cmu.edu/nowcast/) for the CDC, state departments of public health, and the public. + +* **2016.** We developed and deployed the [Epidata API](https://cmu-delphi.github.io/delphi-epidata/), which provides real-time access to epidemiological surveillance data. + +* **2013.** We began supporting the U.S. CDC’s Influenza Division in advancing and growing a [scientific community around influenza forecasting](https://www.cdc.gov/flu/weekly/flusight/index.html). We’ve been [perennial leaders in forecasting accuracy](https://www.cs.cmu.edu/~roni/CDC%20Flu%20Challenge%202014-2018%20Results.pdf) ever since. -- **2016.** We developed and deployed the [Epidata API]({{< apiref "/" >}}), - which provides real-time access to epidemiological surveillance data. -- **2013.** We began supporting the U.S. CDC's Influenza Division in advancing - and growing a [scientific community around influenza - forecasting](https://www.cdc.gov/flu/weekly/flusight/index.html). We've been - [perennial leaders in forecasting - accuracy](https://www.cs.cmu.edu/~roni/CDC%20Flu%20Challenge%202014-2018%20Results.pdf) - ever since. diff --git a/content/about/careers/headless/2022_11_data_pipeline_developer.md b/content/about/careers/headless/2022_11_data_pipeline_developer.md deleted file mode 100644 index 6a5983974..000000000 --- a/content/about/careers/headless/2022_11_data_pipeline_developer.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -date: 2022-11-13 -title: Data Pipeline Developer ---- - -We seek a statistically-minded programmer who can leverage their skills in data science and software development best practices to create, extend, and maintain our data pipelines. - -[Apply to the Data Pipeline Developer position at CMU Careers](https://cmu.wd5.myworkdayjobs.com/CMU/job/Pittsburgh-PA/Data-Pipeline-Developer---School-of-Computer-Science_2018598). diff --git a/content/about/careers/headless/2022_11_developer_in_residence.md b/content/about/careers/headless/2022_11_developer_in_residence.md deleted file mode 100644 index 99f5bee59..000000000 --- a/content/about/careers/headless/2022_11_developer_in_residence.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -date: 2022-11-12 -title: Developer in Residence ---- - -We seek a talented senior software developer to take the reins in designing and developing R and Python software packages. These packages support model development and evaluation in predictive tasks in epidemiology such as COVID forecasting, flu forecasting, or hotspot detection for these two pathogens. This software is important both for Delphi's own internal modeling work, and for a community of modelers that works with the CDC on COVID and flu forecasting. - -[Apply to the Developer in Residence position at CMU Careers](https://cmu.wd5.myworkdayjobs.com/CMU/job/Pittsburgh-PA/Developer-in-Residence---School-of-Computer-Sciences_2017318). diff --git a/content/about/careers/headless/2022_11_devops_infrastructure_engineer.md b/content/about/careers/headless/2022_11_devops_infrastructure_engineer.md deleted file mode 100644 index 38c288f7c..000000000 --- a/content/about/careers/headless/2022_11_devops_infrastructure_engineer.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -date: 2022-11-11 -title: DevOps/Infrastructure Engineer ---- - -We seek a devops/infrastructure engineer who can leverage their skills in developer operations, systems administration, and configuration management to design, build, monitor, and maintain the compute infrastructure for Delphi's data processing systems. - -[Apply to the DevOps/Infrastructure Engineer position at CMU Careers](https://cmu.wd5.myworkdayjobs.com/CMU/job/Pittsburgh-PA/DevOps-Infrastructure-Engineer---School-of-Computer-Science_2018599). diff --git a/content/about/careers/headless/2022_11_senior_database_and_systems_software_engineer.md b/content/about/careers/headless/2022_11_senior_database_and_systems_software_engineer.md deleted file mode 100644 index b04c395ea..000000000 --- a/content/about/careers/headless/2022_11_senior_database_and_systems_software_engineer.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -date: 2022-11-14 -title: Senior Database and Systems Software Engineer ---- - -We seek a technical leader who can leverage their skills in large-scale databases and software engineering to design and oversee the continual improvement of our data systems. - -[Apply to the Senior Database and Systems Software Engineer position at CMU Careers](https://cmu.wd5.myworkdayjobs.com/CMU/job/Pittsburgh-PA/Senior-Database-and-Systems-Software-Engineer---School-of-Computer-Science_2018562). diff --git a/content/about/careers/headless/2023_06_software_engineering_manager.md b/content/about/careers/headless/2023_06_software_engineering_manager.md deleted file mode 100644 index 86404056d..000000000 --- a/content/about/careers/headless/2023_06_software_engineering_manager.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -date: 2023-06-14 -title: Software Engineering Manager ---- - -We seek a talented manager and engineer that is capable of translating organizational goals between the executive and the engineering teams, support and mentor technical staff, and provide strong, lightly-held opinions for technical guidance. - -[Apply to the Software Engineering Manager position at CMU Careers](https://cmu.wd5.myworkdayjobs.com/en-US/CMU/job/Software-Engineering-Manager---School-of-Computer-Science---MLD_2020065-1). diff --git a/content/about/news/headless/cfa-oadm.md b/content/about/news/headless/cfa-oadm.md new file mode 100644 index 000000000..e0165b3cd --- /dev/null +++ b/content/about/news/headless/cfa-oadm.md @@ -0,0 +1,12 @@ +--- +date: 2023-09-19 +title: CDC Selects Delphi Research Group at CMU as Center of Innovation in Outbreak Analytics and Disease Modeling +category: update +image: 2023-09-27_cfa_oadm-thumb.jpg +--- + +The CDC's [Center for Forecasting and Outbreak Analytics](https://www.cdc.gov/forecast-outbreak-analytics/index.html) announced the five-year, $17.5 million funding of the Delphi Center for Innovation in Outbreak Analytics and Disease Modeling on Sept. 19 as part of a national network of 13 centers of researchers, industry leaders and public health departments. The [Outbreak Analytics and Disease Modeling Network](https://www.cdc.gov/forecast-outbreak-analytics/about/oadm-network.html) will work together to create shared resources to address outbreak analytics, and disease modeling and forecasting, and will support a more effective response during public health emergencies. + +Related news articles: + +- [CDC Awarding More Than $250 Million For Network Of 13 Infectious Disease Forecasting Centers](https://www.forbes.com/sites/michaeltnietzel/2023/09/20/cdc-awarding-more-than-250-million-for-network-of-13-infectious-disease-forecasting-centers/?sh=1fe8737a43e9) diff --git a/content/about/news/images/2023-09-27_cfa_oadm-thumb.jpg b/content/about/news/images/2023-09-27_cfa_oadm-thumb.jpg new file mode 100644 index 000000000..2165d0233 Binary files /dev/null and b/content/about/news/images/2023-09-27_cfa_oadm-thumb.jpg differ diff --git a/content/about/publications/images/dag.jpg b/content/about/publications/images/dag.jpg new file mode 100644 index 000000000..3bef1da0c Binary files /dev/null and b/content/about/publications/images/dag.jpg differ diff --git a/content/about/publications/index.md b/content/about/publications/index.md index 168124011..d5243d4ae 100644 --- a/content/about/publications/index.md +++ b/content/about/publications/index.md @@ -1,6 +1,12 @@ --- title: Research papers: + - title: "Frequentist Inference for Semi-mechanistic Epidemic Models with Interventions" + image: dag.jpg + authors: Bong, Ventura, Wasserman + link: https://arxiv.org/pdf/2309.10792 + journal: arXiv + year: 2023 - title: "Comparing Trained and Untrained Probabilistic Ensemble Forecasts of COVID-19 Cases and Deaths in the United States" image: comparing-ensemble-forecasts-thumb.jpg authors: Ray, Brooks, Bien, Biggerstaff, Bosse, Bracher, Cramer, Funk, Gerding, Johansson, Rumack, Wang, Zorn, Tibshirani, Reich diff --git a/content/blog/2020-08-26-fb-survey.Rmd b/content/blog/2020-08-26-fb-survey.Rmd index 598ba02cc..0a49d9489 100644 --- a/content/blog/2020-08-26-fb-survey.Rmd +++ b/content/blog/2020-08-26-fb-survey.Rmd @@ -47,9 +47,6 @@ output: toc: true --- -```{r, echo=FALSE} -options(covidcast.auth = Sys.getenv("API_KEY")) -``` Since April 2020, in collaboration with Facebook, partner universities, and public health officials, @@ -140,6 +137,8 @@ library(covidcast) library(dplyr) library(gridExtra) +options(covidcast.auth = Sys.getenv("API_KEY")) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html + # Fetch Facebook % CLI signal and JHU confirmed case incidence proportion at # the state level start_day = "2020-06-15" diff --git a/content/blog/2020-08-26-fb-survey.html b/content/blog/2020-08-26-fb-survey.html index 0516c82b5..758fb7b4d 100644 --- a/content/blog/2020-08-26-fb-survey.html +++ b/content/blog/2020-08-26-fb-survey.html @@ -47,20 +47,19 @@ toc: true --- -
@@ -141,6 +140,8 @@

Short Background

library(dplyr) library(gridExtra) +options(covidcast.auth = Sys.getenv("API_KEY")) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html + # Fetch Facebook % CLI signal and JHU confirmed case incidence proportion at # the state level start_day = "2020-06-15" diff --git a/content/blog/2020-08-28-api.Rmd b/content/blog/2020-08-28-api.Rmd index 3828a5b36..c8675d28b 100644 --- a/content/blog/2020-08-28-api.Rmd +++ b/content/blog/2020-08-28-api.Rmd @@ -282,9 +282,10 @@ and ask "What was known _as of_ this date?" This is important because estimates can change for _weeks_ as new data arrives: -```{r q-versioning, warning=FALSE, message=FALSE, cache=TRUE} +```{r q-versioning, warning=FALSE, message=FALSE, cache=TRUE, eval=FALSE} library(covidcast) library(dplyr) +options(covidcast.auth = Sys.getenv("API_KEY")) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html query_date <- "2020-08-01" covidcast_signal( data_source = "quidel", @@ -300,6 +301,7 @@ covidcast_signal( col.names = c("Test date", "Positivity rate (%)", "Sample size", "Issued on", "Lag (days)")) ``` +*November 2023 update: Quidel data is no longer publicly available, so the table generated by the code chunk above has been removed.* Many data sources are subject to revisions: @@ -359,6 +361,7 @@ that are due to COVID-19 in several states. ```{r dv-graph, message=FALSE, cache=TRUE} library(covidcast) +options(covidcast.auth = Sys.getenv("API_KEY")) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html hosp <- covidcast_signal( data_source = "hospital-admissions", signal = "smoothed_adj_covid19_from_claims", start_day = "2020-03-01", end_day = "2020-08-30", @@ -398,14 +401,17 @@ this is the `fb-survey` data source's `smoothed_hh_cmnty_cli` signal. (Click the "Code" button to see the Python code used to produce this example.) ```{python python-data, dev='svg'} +import matplotlib.pyplot as plt import covidcast from datetime import date -import matplotlib.pyplot as plt +import os + +covidcast.use_api_key(os.environ['API_KEY']) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html data = covidcast.signal("fb-survey", "smoothed_hh_cmnty_cli", date(2020, 9, 8), date(2020, 9, 8), geo_type="state") -covidcast.plot_choropleth(data, figsize=(7, 5)) +covidcast.plot(data, plot_type="choropleth", figsize=(7, 5)) plt.title("% who know someone who is sick, Sept 8, 2020") ``` diff --git a/content/blog/2020-08-28-api.html b/content/blog/2020-08-28-api.html index 5a16146ff..8866b34e8 100644 --- a/content/blog/2020-08-28-api.html +++ b/content/blog/2020-08-28-api.html @@ -51,15 +51,14 @@ toc: true --- -
@@ -280,6 +279,7 @@

Tracking Observations and Revisions

can change for weeks as new data arrives:

library(covidcast)
 library(dplyr)
+options(covidcast.auth = Sys.getenv("API_KEY")) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html
 query_date <- "2020-08-01"
 covidcast_signal(
   data_source = "quidel",
@@ -294,182 +294,7 @@ 

Tracking Observations and Revisions

knitr::kable("html", digits = 2, col.names = c("Test date", "Positivity rate (%)", "Sample size", "Issued on", "Lag (days)"))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Test date - -Positivity rate (%) - -Sample size - -Issued on - -Lag (days) -
-2020-08-01 - -1.01 - -198 - -2020-08-06 - -5 -
-2020-08-01 - -0.97 - -206 - -2020-08-07 - -6 -
-2020-08-01 - -1.41 - -284 - -2020-08-10 - -9 -
-2020-08-01 - -1.38 - -290 - -2020-08-12 - -11 -
-2020-08-01 - -1.33 - -377 - -2020-08-16 - -15 -
-2020-08-01 - -1.53 - -459 - -2020-08-19 - -18 -
-2020-08-01 - -1.47 - -477 - -2020-08-20 - -19 -
-2020-08-01 - -1.46 - -479 - -2020-08-26 - -25 -
-2020-08-01 - -1.36 - -513 - -2020-08-30 - -29 -
+

November 2023 update: Quidel data is no longer publicly available, so the table generated by the code chunk above has been removed.

Many data sources are subject to revisions: