This engaging workshop offers a comprehensive introduction to the fundamental components of computational thinking and programming, tailored specifically for social scientists. Participants will explore key programming concepts, including variables, if-statements, and for-loops, while gaining a deeper understanding of how programming involves issuing precise commands that a computer executes step-by-step. We therefore train how social scientists can translate their research questions into computational problems that a computer can effectively address; thus trying to find a balance between more advanced methods and more substantive social science questions.
Moving beyond foundational programming skills, the workshop explores how to bridge computational methods to usual social science methods. Therefore, we quickly explore practical applications of machine learning in analysing survey data and focus on data scientists' strategies to enhance accuracy and predictability in their models; discussing how such strategies can be applied in social science questions.
- Please install RStudio before the workshop.
- Download the examples used during the workshop and unzip it into a new folder.
- Download World Value Survey dataset for some country and store it in the same folder as the materials you just unzipped.
- Open a project and search the folder you created in step 2 above.
- From the file tabs, open
Computational thinking.rmd:
- Once opened, choose a visual display:
- After this, you should see text and code segments:
To execute or run the code in the code block, you need to press the green play button. You can edit the code directly inline, i.e., type new commands there and then just execute it.
The examples and style used here follows the book Computational Thinking and Social Science. We focus on Chapters 2 and 3 in this crash course.


