Editing Advanced Computational Communication Methods (Summer 2023)

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 171: Line 171:


* Paper: Wilson G, Bryan J, Cranston K, Kitzes J, Nederbragt L, Teal TK (2017). [https://doi.org/10.1371/journal.pcbi.1005510 Good enough practices in scientific computing]. PLoS Comput Biol 13(6): e1005510.
* Paper: Wilson G, Bryan J, Cranston K, Kitzes J, Nederbragt L, Teal TK (2017). [https://doi.org/10.1371/journal.pcbi.1005510 Good enough practices in scientific computing]. PLoS Comput Biol 13(6): e1005510.
* Paper: Gentzkow M, Shapiro JM. Code and Data for the Social Sciences: A Practitioner's Guide; 2014. https://web.stanford.edu/~gentzkow/research/CodeAndData.pdf.
* Video: [https://www.youtube.com/watch?v=4rBX6r5emgQ Reproducible Research: Concepts and Ideas]. Roger Peng. YouTube
* Video: [https://www.youtube.com/watch?v=4rBX6r5emgQ Reproducible Research: Concepts and Ideas]. Roger Peng. YouTube


Line 177: Line 176:
* [https://jeremydfoote.com/computational_communication_resources/reproducible_research/lecture/reproducible_research.html Week 2 and 3 slides]
* [https://jeremydfoote.com/computational_communication_resources/reproducible_research/lecture/reproducible_research.html Week 2 and 3 slides]
* [https://purdue.brightspace.com/d2l/le/content/798129/viewContent/13239600/View Video of class meeting]
* [https://purdue.brightspace.com/d2l/le/content/798129/viewContent/13239600/View Video of class meeting]
=== Organization ===
Key ideas:
* Folder structure
** Different options, but separate code from data
** Jeremy's approach:
<pre>
my_cool_project
|
|-- README.md # Explanation of project and how to navigate it
|-- Snakefile # Or Makefile - workflow tool
|
|-- data/
|  |-- raw_data/
|  |-- processed_data/
|
|-- code/
|
|-- results/
|  |-- figures/
|
|-- papers/
|
|-- presentations/
</pre>




Line 212: Line 183:
* Back up raw data  
* Back up raw data  
* Keep raw data (and make it read-only)
* Keep raw data (and make it read-only)
* Step one is to clean the data: create the data you wish you received
* Name variables well
** Name variables well
** Use a [https://www.jstatsoft.org/article/view/v059i10 tidy] data structure
* Share data (when possible)
* Share data (when possible)
'''Resources:'''


=== Code management ===
=== Code management ===
Line 221: Line 193:
Key ideas:
Key ideas:
* Version control
* Version control
* Don't repeat yourself (DRY)
* Build at least a few high-level test cases


'''Resources:'''


== Week 3: Reproducible Research II (May 30) ==
== Week 3: Reproducible Research II (May 30) ==
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)