Title: | COVID Symptom Study Sweden Open Dataset |
---|---|
Description: | The COVID Symptom Study is a non-commercial project that uses a free mobile app to facilitate real-time data collection of symptoms, exposures, and risk factors related to COVID19. The package allows easy access to summary statistics data from COVID Symptom Study Sweden. |
Authors: | Hugo Fitipaldi [aut, cre] |
Maintainer: | Hugo Fitipaldi <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.0 |
Built: | 2025-02-25 03:46:05 UTC |
Source: | https://github.com/hugofitipaldi/covidsymptom |
A dataset containing predictions of COVID Symptom Study Sweden at national level
county_estimates
county_estimates
A data frame of 5 columns
Swedish county
Date of prediction
Estimated prevalence of COVID-19 in Sweden
Confidence Interval Lower Bound
Confidence Interval Higher Bound
This dataset contains daily estimated prevalence of symptomatic covid-19 in swedish counties.
COVID Symptom Study-Sweden.
data(county_estimates)
data(county_estimates)
Easily imports COVID Symptom Study-Sweden open data
The COVID Symptom Study is a non-commercial project that uses a free smartphone app to facilitate real-time data collection of symptoms, exposures, and risk factors related to COVID-19. The app was developed by researchers at King’s College and Guys and St Thomas’ Hospitals in London in partnership with health science company Zoe Global Ltd. Baseline data and recurring daily questions are described in Drew et al (Science, 2020). The app was launched in the UK and US March 2020. In Sweden, the study is based at Lund University and, as per a collaboration agreement on 28 July 2020, Uppsala University. The app was launched in Sweden on April 29, 2020 as part of a national research initiative on COVID-19. To date, >4.5 million participants in the three countries are using the app, ~202,000 of whom live in Sweden. Participants have so far made ~271 million data entries, with Swedish participants contributing ~11 million of these.
Maintainer: Hugo Fitipaldi [email protected]
Useful links:
Report bugs at https://github.com/hugofitipaldi/covidsymptom/issues
A dataset containing daily reported number of covid-19 tests and the proportion of positive results
csss_tests
csss_tests
A data frame of 4 columns
Date of report
Number of tests
Proportion of positive tests
Type of test: snabbtest (antigen) or PCR
This dataset contains daily reports of covid-19 tests and the proportion of positive results in swedish 2-digit postcode regions.
COVID Symptom Study-Sweden.
data(csss_tests)
data(csss_tests)
This function was originally designed to download the latest version of CSSS data dynamically. Due to the cessation of data updates from the COVID Symptom Study Sweden, this function now checks if locally stored data is up-to-date and notifies the user accordingly. The function will not fetch new data from online sources.
get_latest_data(data_level = c("national", "county", "postcode"))
get_latest_data(data_level = c("national", "county", "postcode"))
data_level |
A character string specifying which data set from CSSS you want to "download". Can be "national" (default), "county", or "postcode". |
Note: As the COVID Symptom Study Sweden is no longer updating their data sets, this function serves as a demonstration of how data updates could be managed without needing frequent package updates. It returns the data that was last available before updates were discontinued.
This function returns a data.frame
containing the data for the specified level. Data returned is the last available snapshot stored within the package.
Hugo Fitipaldi
# The following example demonstrates how to retrieve data at the county level. df <- get_latest_data(data_level = "county")
# The following example demonstrates how to retrieve data at the county level. df <- get_latest_data(data_level = "county")
A dataset containing predictions of COVID Symptom Study Sweden at national level
national_estimates
national_estimates
A data frame of 4 columns
Date of prediction
Estimated prevalence of COVID-19 in Sweden
Confidence Interval Lower Bound
Confidence Interval Higher Bound
This dataset contains daily estimated prevalence of symptomatic covid-19 in Sweden.
COVID Symptom Study-Sweden.
data(national_estimates)
data(national_estimates)
A dataset containing predictions of COVID Symptom Study Sweden at national level
postcode_estimates
postcode_estimates
A data frame of 5 columns
2-digit postal code area
Date of prediction
Estimated prevalence of COVID-19 in Sweden
Confidence Interval Lower Bound
Confidence Interval Higher Bound
Regions/cities within the postcode area
This dataset contains daily estimated prevalence of symptomatic covid-19 in swedish 2-digit postcode regions.
COVID Symptom Study-Sweden.
data(postcode_estimates)
data(postcode_estimates)
A dataset containing daily reported number of covid-19 tests and the proportion of positive results
symptoms
symptoms
A data frame of 4 columns
Date of report
Symptom
Proportion of symptom
Weight related to covid19: positiv or negativ
This dataset contains daily reports of covid-19 tests and the proportion of positive results in swedish 2-digit postcode regions.
COVID Symptom Study-Sweden.
data(csss_tests)
data(csss_tests)
Originally, this function would update the package datasets in the global environment with the most recent data from the development version of the package. However, as updates to the CSSS dataset have been discontinued, this function now simply notifies that no updates are available.
This function served to ensure that the package datasets remained up-to-date without requiring a full package reinstallation. It would compare the local version of the data with the latest online version and offer to update if newer data were found.
Due to the discontinuation of data updates from CSSS, this function now only serves to inform users that no new updates will be provided, preserving its structure for educational or demonstration purposes.
update_csss_data(silence = FALSE)
update_csss_data(silence = FALSE)
silence |
A logical parameter (default FALSE) to suppress messages. Setting this parameter will not affect the functionality now as the function does not perform any operations. |
None. This function now simply prints a message to the console indicating that the function has been disabled and no updates are available.
Hugo Fitipaldi
update_csss_data() # This will print a message that no updates are available.
update_csss_data() # This will print a message that no updates are available.