Editing Statistics and Statistical Programming (Winter 2021)/Problem set 11

From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 7: Line 7:


===PC1. Access and import the data ===
===PC1. Access and import the data ===
* '''Download the dataset''' from this URL at the [https://dataverse.harvard.edu/ Harvard Dataverse]: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/2NJV2P
* [https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/2NJV2P Download the dataset]. You may want to familiarize yourself with the experimental treatment and key details of the research design from the (short) article linked above.
* Once you have it, you will want to familiarize yourself with the experimental treatment and key details of the research design from the (short) article linked above (and included on the required tasks for today on the syllabus).
* Import the data into R. Depending on the file format you encounter, you may need to install the <code>readstata13</code> package and identify an appropriate function with which to do so.
* Import the data into R. Depending on the file format you encounter, you may need to install the <code>readstata13</code> package and identify an appropriate function with which to do so.
===PC2. Explore and cleanup the data===  
===PC2. Explore and cleanup the data===  
Get to know your dataset. Take a look at the codebook if necessary and make sure you have the two columns of the dataset that correspond to the experimental treatment (being presented with Michelle Obama's face or not) and the outcome (whether or not trick-or-treaters picked up fruit). Don't worry about any of the other measures for now.
Get to know your dataset. Take a look at the codebook if necessary and make sure you have the two columns of the dataset that correspond to the experimental treatment (being presented with Michelle Obama's face or not) and the outcome (whether or not trick-or-treaters picked up fruit). Don't worry about any of the other measures for now.
Line 33: Line 31:
:: (d) Summarize/restate the results in both statistical and substantive terms. Assess the results: How convincing do you find them? What should we take away from this analysis?
:: (d) Summarize/restate the results in both statistical and substantive terms. Assess the results: How convincing do you find them? What should we take away from this analysis?


<!--
===EQ2. Two blogospheres===
===EQ2. Two blogospheres===


Line 41: Line 38:
:: (c) Reproduce Figure 2 using the data in Table 3. One thing that's missing from that figure is error bars. Based on the reading from Reinhart §5, what type of error bars do you think you should use? Figure out how to calculate the error bars and figure out if they overlap? What does that tell us? (Bonus: figure out how to add error bars to the bar plot)
:: (c) Reproduce Figure 2 using the data in Table 3. One thing that's missing from that figure is error bars. Based on the reading from Reinhart §5, what type of error bars do you think you should use? Figure out how to calculate the error bars and figure out if they overlap? What does that tell us? (Bonus: figure out how to add error bars to the bar plot)
:: (d) Should we be concerned about the base rate fallacy described in Reinhart §4? Why or why not?
:: (d) Should we be concerned about the base rate fallacy described in Reinhart §4? Why or why not?
-->
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)