All data were collected by Pew Research. Both datasets can be downloaded from Pew Research Center Global Attitudes and Trends website: https://www.pewresearch.org/global/datasets/
Analyses and figures were performed using the statistical software R (v 3.6.1). The directory below includes the R code file and three Rdata files generated with that code.
Article published in Plos One, DOI: https://doi.org/10.1371/journal.pone.0231794