DOI: 10.7910/dvn/ufl6mi
title: Supplementary materials for: "Comparing Internet experiences and prosociality in Amazon Mechanical Turk and population-based survey samples"

description: &lt;h3&gt;Overview&lt;/h3&gt;

&lt;p&gt;Supplementary materials for the paper "Comparing Internet experiences and prosociality in Amazon Mechanical Turk and population-based survey samples" by Eszter Hargittai and Aaron Shaw published in &lt;em&gt;Socius&lt;/em&gt; in 2020 (&lt;a href="https://doi.org/10.1177/2378023119889834"&gt;https://doi.org/10.1177/2378023119889834&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;License&lt;/h3&gt;

&lt;p&gt;The materials provided here are issued under the same (Creative Commons Attribution Non-Commercial 4.0) license as the paper. Details and a copy of the license are available at: &lt;a href="http://creativecommons.org/licenses/by-nc/4.0/"&gt;http://creativecommons.org/licenses/by-nc/4.0/&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;Manifest&lt;/h3&gt;

&lt;p&gt;The files included are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Hargittai-Shaw-AMT-NORC-2019.rds and Hargittai-Shaw-AMT-NORC-2019.tsv: Two (identical) versions the dataset used for the analysis. The tsv file is provided to facilitate import into software other than R.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;R analysis code files: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;01-import.R - Imports dataset. Creates a mapping of dependent variables and variable names used elsewhere in the figure and analysis. &lt;/li&gt;
&lt;li&gt;02-gen_figure.R - Generates Figure 1 in PDF and PNG formats and saves them in the "figures" directory. &lt;/li&gt;
&lt;li&gt;03-gen&lt;em&gt;descriptive&lt;/em&gt;stats.R - Generates results reported in Table 1. &lt;/li&gt;
&lt;li&gt;04-gen_models.R - Fits models reported in Tables 2-4. &lt;/li&gt;
&lt;li&gt;05-alternative_specifications.R - Fits models using log-transformed version of the income variable. &lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Makefile: Executes all of the R files in sequence, produces corresponding .log files in the "log" directory that contain the full R session from each file as well as separate error log files (also in the "log" directory) that capture any error messages and warnings generated by R along the way. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HargittaiShaw2019Socius-Instrument.pdf: The questions distributed to both the NORC and AMT survey participants used in the analysis reported in this paper. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;How to reproduce the analysis presented in the paper&lt;/h3&gt;

&lt;p&gt;Depending on your computing environment, reproducing the analysis presented in the paper may be as easy as invoking "make all" or "make" in the directory containing this file on a system that has the appropriate software installed. Once compilation is complete, you can review the log files in a text editor. See below for more on software and dependencies. If calling the makefile fails, the individual R scripts can also be run interactively or in batch mode.&lt;/p&gt;

&lt;h4&gt;Software and dependencies&lt;/h4&gt;

&lt;p&gt;The R and compilation materials provided here were created and tested on a 64-bit laptop pc running Ubuntu 18.04.3 LTS, R version 3.6.1, ggplot2 version 3.2.1, reshape2 version 1.4.3, forcats version 0.4.0, pscl version 1.5.2, and stargazer version 5.2.2 (these last five are R packages called in specific .R files). As with all software, your mileage may vary and the authors provide no warranties.&lt;/p&gt;

&lt;h3&gt;Codebook&lt;/h3&gt;

&lt;p&gt;The dataset consists of 36 variables (columns) and 2,716 participants (rows).&lt;/p&gt;

&lt;p&gt;The variable names and brief descriptions follow below. Additional details of measurement are provided in the paper and survey instrument. All dichotomous indicators are coded 0/1 where 1 is the affirmative response implied by the variable name:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;id: Index to identify individual units (participants).&lt;/li&gt;
&lt;li&gt;svy_raked_wgt: Raked survey weights provided by NORC.&lt;/li&gt;
&lt;li&gt;amtsample: Data source coded 0 (NORC) or 1 (AMT).&lt;/li&gt;
&lt;li&gt;age: Participant age in years.&lt;/li&gt;
&lt;li&gt;female: Participant selected "female" gender.&lt;/li&gt;
&lt;li&gt;incomecont: Income in USD (continuous) coded from center-points of categories reported in the instruments.&lt;/li&gt;
&lt;li&gt;incomediv: Income in $1,000s USD (=incomecont/1000).&lt;/li&gt;
&lt;li&gt;incomesqrt: Square-root of incomecont.&lt;/li&gt;
&lt;li&gt;lincome: Natural logarithm of incomecont.&lt;/li&gt;
&lt;li&gt;rural: Participant resides in a rural area.&lt;/li&gt;
&lt;li&gt;employed: Participant is fully or partially employed.&lt;/li&gt;
&lt;li&gt;eduhsorless: Highest education level is high school or less.&lt;/li&gt;
&lt;li&gt;edusc: Highest education level is completed some college.&lt;/li&gt;
&lt;li&gt;edubaormore: Highest education level is BA or more.&lt;/li&gt;
&lt;li&gt;white: Race = white.&lt;/li&gt;
&lt;li&gt;black: Race = black.&lt;/li&gt;
&lt;li&gt;nativeam: Race = native american.&lt;/li&gt;
&lt;li&gt;hispanic: Ethnicity = hispanic.&lt;/li&gt;
&lt;li&gt;asian: Race = asian.&lt;/li&gt;
&lt;li&gt;raceother: Race = other.&lt;/li&gt;
&lt;li&gt;skillsmean: Internet use skills index (described in paper). &lt;/li&gt;
&lt;li&gt;accesssum: Internet use autonomy (described in paper).&lt;/li&gt;
&lt;li&gt;webweekhrs: Internet use frequency (described in paper).&lt;/li&gt;
&lt;li&gt;do_sum: Participatory online activities (described in paper).&lt;/li&gt;
&lt;li&gt;snssumcompare: Social network site activities (described in paper).&lt;/li&gt;
&lt;li&gt;altru_scale: Generous behaviors (described in paper).&lt;/li&gt;
&lt;li&gt;trust_scale: Trust scale score (described in paper).&lt;/li&gt;
&lt;li&gt;pts_give: Points donated in unilateral dictator game (described in paper).&lt;/li&gt;
&lt;li&gt;std_accesssum: Standardized (z-score) version of accesssum.&lt;/li&gt;
&lt;li&gt;std_webweekhrs: Standardized (z-score) version of webweekhrs.&lt;/li&gt;
&lt;li&gt;std_skillsmean: Standardized (z-score) version of skillsmean.&lt;/li&gt;
&lt;li&gt;std_do_sum: Standardized (z-score) version of do_sum.&lt;/li&gt;
&lt;li&gt;std_snssumcompare: Standardized (z-score) version of snssumcompare.&lt;/li&gt;
&lt;li&gt;std_trust_scale: Standardized (z-score) version of trust_scale.&lt;/li&gt;
&lt;li&gt;std_altru_scale: Standardized (z-score) version of altru_scale.&lt;/li&gt;
&lt;li&gt;std_pts_give: Standardized (z-score) version of pts_give.&lt;/li&gt;
&lt;/ul&gt;