Editing Statistics and Statistical Programming (Winter 2017)/Problem Set: Week 7
From CommunityData
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 3: | Line 3: | ||
: '''PC1.''' Download [https://canvas.uw.edu/files/40507084/download?download_frd=1 this dataset] in Stata DTA format which contains an anonymized and reduced version of the data visualized in the Buechley and Hill paper on Lilypad. Once you have it | : '''PC1.''' Download [https://canvas.uw.edu/files/40507084/download?download_frd=1 this dataset] in Stata DTA format which contains an anonymized and reduced version of the data visualized in the Buechley and Hill paper on Lilypad. Once you have it | ||
::(a) Reproduce both Table 1 and Table 2 (just US users) using the dataset (as closely as possible). | ::(a) Reproduce both Table 1 and Table 2 (just US users) using the dataset (as closely as possible). | ||
::(b) Run a <math>\chi^2</math>-test on both tables. Compare to the paper | ::(b) Run a <math>\chi^2</math>-test on both tables. Compare to the paper. Did you reproduce it? | ||
::(c) Install the package "gmodels" and try to display the table using the function <code>CrossTable()</code>. This will give you output very similar to SPSS. | ::(c) Install the package "gmodels" and try to display the table using the function <code>CrossTable()</code>. This will give you output very similar to SPSS. | ||
::( | ::(c) It's important to be able to import tables directly into your word processor without cutting and pasting individual cells. Can you export the ''output'' of your table? There are a bunch of functions you can use to do this. I used the "xtable" package but I think that <code>write.table()</code> and Excel would do the job just as well. | ||
: '''PC2.''' At the [[Community Data Science Workshops]] we had two parallel afternoon sessions on Day 1. In my session, there were 42 participants. In Tommy Guy's session, there were only 19. The next week (Day 2), we asked folks to raise their hands if they had been in Tommy's session (14 did ) and how many had been in mine (31 did). There was clearly attrition in both groups! Was there ''more'' attrition in one group than another? Try answering this both with a test of proportions (<code>prop.test()</code>) and with a <math>\chi^2</math>. Compare your answers. Is there convincing evidence that there is a dependence between instructor and attrition? | : '''PC2.''' At the [[Community Data Science Workshops]] we had two parallel afternoon sessions on Day 1. In my session, there were 42 participants. In Tommy Guy's session, there were only 19. The next week (Day 2), we asked folks to raise their hands if they had been in Tommy's session (14 did ) and how many had been in mine (31 did). There was clearly attrition in both groups! Was there ''more'' attrition in one group than another? Try answering this both with a test of proportions (<code>prop.test()</code>) and with a <math>\chi^2</math>. Compare your answers. Is there convincing evidence that there is a dependence between instructor and attrition? | ||
== Statistical Questions from OpenIntro §6 == | == Statistical Questions from OpenIntro §6 == | ||
Line 26: | Line 22: | ||
: '''Q6.''' 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. | : '''Q6.''' 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. | ||
: ''' | : '''Q6.''' Do you think that the assumptions that underly the linear regression model reported in Table 5 hold? If you can't decide, what information might you like to have seen provided to help you? | ||
: ''' | : '''Q7.''' Be ready to explain what Table 5 means in both statistical and substantive terms. Be ready to interpret the coefficients in substantive terms and be ready to explain what the t-statistics, <math>R^2</math>, and p-values mean. Be ready to provide an sentence for each that interprets each number in the table in substantive terms. This will mean understanding what every variable actually measures. |