Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history
Editing
Statistics and Statistical Programming (Spring 2019)/Problem Set: Week 7
From CommunityData
Jump to:
navigation
,
search
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.
Anti-spam check. Do
not
fill this in!
== Programming Challenges == For the programming challenges this week, we'll focus on data from the following study: :: Aronow PM, Karlan D, Pinson LE. (2018). The effect of images of Michelle Obama’s face on trick-or-treaters’ dietary choices: A randomized control trial. PLoS ONE 13(1): e0189693. [https://doi.org/10.1371/journal.pone.0189693 https://doi.org/10.1371/journal.pone.0189693] : '''PC1.''' [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. :'''PC2.''' Import the data into R. You may need to install the <code>readstata13</code> package and identify an appropriate function with which to do so. :'''PC3.''' 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) and the outcome (whether or not kids picked up fruit). Don't worry about any of the other measures for now. :'''PC4.''' Create a two-way contingency table summarizing these two variables. Make sure your table has easily understandable column and row names. :'''PC5.''' Conduct a test to determine whether or not the two groups are dependent. Report and interpret the results of your test and be prepared to discuss your findings. Please note that the paper uses a variety of techniques including linear regression and incorporates other variables, but you should use estimators and tests we read about in Chapter 6 last week. Do you have a sense, from your ''OpenIntro'' readings this week, why the results might be different when you use regression and incorporate the other variables? :'''PC6.''' Try to reproduce the top panel of Figure 1 using the same two columns of the dataset (by ignoring year and the other variables we are, in effect, working with the "pooled" sample). If you cannot reproduce that portion of the figure (or something like it), try to at least reproduce the values presented in it. :'''PC7.''' It's very important to be able to export tables directly into your word processor or typesetting software without cutting and pasting the contents of individual cells. Can you export the ''output'' of your table from PC4? There are a bunch of functions you can use to do this. I would likely use the <code>xtable</code> package to generate HTML and/or LaTeX output, but I think that <code>write.table()</code> and Excel could do the job just as well. == Statistical Questions == ''from OpenIntro §7'' : '''SQ0.''' Any questions or clarifications from the OpenIntro text or lecture notes? : '''SQ1.''' Exercise 7.6 using some census data from the UK : '''SQ2.''' Exercise 7.30 which is about cats. : '''SQ3.''' Exercise 7.40 using date from rate my professor : '''SQ4.''' Exercise 7.42 which is about babies. <!--- : '''SQ3.''' Exercise 8.4 on school absenteeism : '''SQ4.''' Exercise 8.10 on school absenteeism again (no sub-parts) : '''SQ5.''' Exercise 8.14 on evaluating regression residuals (no sub-parts) ---> == Empirical Paper Questions == These questions are about the [http://dx.doi.org/10.1145/985692.985761 Lampe and Resnick] paper which is a highly cited paper in my area of research. For this week, we'll focus on the correlation table (Table 3) and the regression table in Table 5. We'll come back to the multiple regression aspects of Table 5 and the logistic regression next week. : '''EQ1.''' Be ready to explain Table 3. In particular, be ready to talk about the bivariate relationships between "Final score" all of the other variables in the model. Be ready to talk about the correlation both in quantitative and in substantive terms. : '''EQ2. ''' Given what we have covered about regression so far, do you think that the assumptions that underly the linear regression model reported in Table 5 hold? What information might you like to have seen provided to help you determine your answer? : '''EQ3.''' Given what we have covered about regression so far, be ready to explain what Table 5 means in both statistical and substantive terms. In particular, be ready to interpret at least one of the coefficients in substantive and statistical terms and be ready to explain what the t-statistics, <math>R^2</math>, and p-values mean.
Summary:
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)
Tools
What links here
Related changes
Special pages
Page information