Editing Statistics and Statistical Programming (Winter 2017)/Problem Set: Week 7

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 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 (for Table 1, there doesn't seem to be a <math>\chi^2</math> test for Table 2). Did you reproduce it?
::(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.
::(d) 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.
::(d) 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.
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)