## Filename: README.txt

## Description: R code for reproducing the analyses in "Investigating selection
   bias of online surveys on coronavirus-relatedbehavioral outcomes", published
   in Survey Research Methods

## Author: Ines Schaurer <ines.schaurer@gesis.org> and Bernd Weiß
   <Bernd.Weiss@gesis.org>

## Creation: 2020-05-29

## Last updated on: 2020-05-29


To start reproducing our analyses, load "7751_analyses.R" into your favourite R
editor, and adjust some folder locations.

Files "7751_functions.R" and "7751_supplement_regressions.R" contain some helper
functions and estimate supplementary regression models, respectively. These
files are called by (and depend on) "7751_analyses.R".

Please find below the output of R's sessionInfo() command:

> sessionInfo()
R version 4.0.0 Patched (2020-04-25 r78297)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252   
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C                   
[5] LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] haven_2.2.0     forcats_0.5.0   stringr_1.4.0   dplyr_0.8.5    
 [5] purrr_0.3.4     readr_1.3.1     tidyr_1.1.0     tibble_3.0.1   
 [9] ggplot2_3.3.0   tidyverse_1.3.0 glue_1.4.1      DT_0.13        
[13] here_0.1       

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6      cellranger_1.1.0  pillar_1.4.4      compiler_4.0.0   
 [5] dbplyr_1.4.3      tools_4.0.0       digest_0.6.25     lubridate_1.7.8  
 [9] jsonlite_1.6.1    lifecycle_0.2.0   nlme_3.1-147      gtable_0.3.0     
[13] lattice_0.20-41   pkgconfig_2.0.3   rlang_0.4.6       reprex_0.3.0     
[17] cli_2.0.2         rstudioapi_0.11   DBI_1.1.0         withr_2.2.0      
[21] xml2_1.3.2        httr_1.4.1        fs_1.4.1          generics_0.0.2   
[25] vctrs_0.3.0       htmlwidgets_1.5.1 hms_0.5.3         rprojroot_1.3-2  
[29] grid_4.0.0        tidyselect_1.1.0  R6_2.4.1          fansi_0.4.1      
[33] readxl_1.3.1      modelr_0.1.8      magrittr_1.5      backports_1.1.7  
[37] scales_1.1.1      ellipsis_0.3.1    htmltools_0.4.0   rvest_0.3.5      
[41] assertthat_0.2.1  colorspace_1.4-1  stringi_1.4.6     munsell_0.5.0    
[45] broom_0.5.6       crayon_1.3.4     
