Title: | COVID Symptom Study Sweden Open Dataset |
Version: | 1.0.0 |
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. |
License: | MIT + file LICENSE |
URL: | https://github.com/hugofitipaldi/covidsymptom |
Depends: | R (≥ 2.10) |
Imports: | stringi, usethis, utils |
Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
VignetteBuilder: | knitr |
Config/testthat/edition: | 3 |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 7.3.1 |
BugReports: | https://github.com/hugofitipaldi/covidsymptom/issues |
NeedsCompilation: | no |
Packaged: | 2024-05-02 12:20:08 UTC; hu3745fi |
Author: | Hugo Fitipaldi [aut, cre] |
Maintainer: | Hugo Fitipaldi <hugofitipaldi@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2024-05-02 13:52:55 UTC |
covidsymptom: COVID Symptom Study-Sweden data
Description
Easily imports COVID Symptom Study-Sweden open data
Details
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.
Author(s)
Maintainer: Hugo Fitipaldi hugofitipaldi@gmail.com
See Also
Useful links:
Report bugs at https://github.com/hugofitipaldi/covidsymptom/issues
Estimates of COVID-19 in Sweden (county level)
Description
A dataset containing predictions of COVID Symptom Study Sweden at national level
Usage
county_estimates
Format
A data frame of 5 columns
- Lan
Swedish county
- Datum
Date of prediction
- Uppskattning
Estimated prevalence of COVID-19 in Sweden
- Low_CI
Confidence Interval Lower Bound
- High_CI
Confidence Interval Higher Bound
Details
This dataset contains daily estimated prevalence of symptomatic covid-19 in swedish counties.
Source
COVID Symptom Study-Sweden.
Examples
data(county_estimates)
Daily covid-19 tests reported in the COVID Symptom Study Sweden
Description
A dataset containing daily reported number of covid-19 tests and the proportion of positive results
Usage
csss_tests
Format
A data frame of 4 columns
- date
Date of report
- total_tests
Number of tests
- proportion_positive
Proportion of positive tests
- test_type
Type of test: snabbtest (antigen) or PCR
Details
This dataset contains daily reports of covid-19 tests and the proportion of positive results in swedish 2-digit postcode regions.
Source
COVID Symptom Study-Sweden.
Examples
data(csss_tests)
Retrieve updated COVID Symptom Study Sweden (CSSS) data
Description
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.
Usage
get_latest_data(data_level = c("national", "county", "postcode"))
Arguments
data_level |
A character string specifying which data set from CSSS you want to "download". Can be "national" (default), "county", or "postcode". |
Details
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.
Value
This function returns a data.frame
containing the data for the specified level. Data returned is the last available snapshot stored within the package.
Author(s)
Hugo Fitipaldi
Examples
# The following example demonstrates how to retrieve data at the county level.
df <- get_latest_data(data_level = "county")
Estimates of COVID-19 in Sweden (national level)
Description
A dataset containing predictions of COVID Symptom Study Sweden at national level
Usage
national_estimates
Format
A data frame of 4 columns
- Datum
Date of prediction
- Uppskattning
Estimated prevalence of COVID-19 in Sweden
- Low_CI
Confidence Interval Lower Bound
- High_CI
Confidence Interval Higher Bound
Details
This dataset contains daily estimated prevalence of symptomatic covid-19 in Sweden.
Source
COVID Symptom Study-Sweden.
Examples
data(national_estimates)
Estimates of COVID-19 in Sweden (2-digit postal code level)
Description
A dataset containing predictions of COVID Symptom Study Sweden at national level
Usage
postcode_estimates
Format
A data frame of 5 columns
- Postnummer
2-digit postal code area
- Datum
Date of prediction
- Uppskattning
Estimated prevalence of COVID-19 in Sweden
- Low_CI
Confidence Interval Lower Bound
- High_CI
Confidence Interval Higher Bound
- Ort
Regions/cities within the postcode area
Details
This dataset contains daily estimated prevalence of symptomatic covid-19 in swedish 2-digit postcode regions.
Source
COVID Symptom Study-Sweden.
Examples
data(postcode_estimates)
Daily proportion of symptoms reported by CSSS users
Description
A dataset containing daily reported number of covid-19 tests and the proportion of positive results
Usage
symptoms
Format
A data frame of 4 columns
- Datum
Date of report
- Symptom
Symptom
- Andel
Proportion of symptom
- Vikt
Weight related to covid19: positiv or negativ
Details
This dataset contains daily reports of covid-19 tests and the proportion of positive results in swedish 2-digit postcode regions.
Source
COVID Symptom Study-Sweden.
Examples
data(csss_tests)
Update COVID Symptom Study Sweden (CSSS) data
Description
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.
Usage
update_csss_data(silence = FALSE)
Arguments
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. |
Value
None. This function now simply prints a message to the console indicating that the function has been disabled and no updates are available.
Author(s)
Hugo Fitipaldi
Examples
update_csss_data() # This will print a message that no updates are available.