This repository was archived by the owner on Dec 12, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork2
Materials for the MIT PML workshop on Good coding practices for social scientists.
License
NotificationsYou must be signed in to change notification settings
adamkaplan0/PML_Good_coding_practices
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository is supposed to mimic a research project containing an analysis, simulation, and report written in RMarkdown. I also include the presentation slides from the workshop held on 11/19/2021.
There are three key takeaways that this repository is hoping to showcase:
- Annotation: All of the code files (except
analysis/analysis_UGLY.R
) are commented and structured according to the advice given in the workshop. - Organization: The whole repository tries to follow the advice as well.
- Replicability: Finally, by including
renv
into the project, I also hope to show how easy it is to reproduce the project environment with very little space/time.
- The
analysis
folder contains the clean-codedanalysis.R
and exemplary ugly-codedanalysis_UGLY.R
files, which run a linear regression of the simulated data and save a regression table and predicted value plots for the report. - The
data
folder contains the.csv
simulated data. - The
report
folder contains all the figures, tables, and.Rmd
report file, compiling them together into a final PDF. - The
simulation
folder contains a.R
script that creates the simulated data used in the analysis. - The
renv
folder and related files ought not to be modified and are included for replicability purposes. To see howrenv
works check outIntroduction to renv. - The
PML_presentation
folder is not part of the example and contains the presentation slides from the workshop.
About
Materials for the MIT PML workshop on Good coding practices for social scientists.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.