Table of contents
- Git and GitHub
- Platform-specific tools
- Text editor
We will not directly program in Python, but some of the tools we use depend on it, so make sure you have installed Python 3. We recommend using the Anaconda Python distribution.
To test whether you have Python 3 installed, open the Termninal (on MacOS or on Linux) or the Anaconda Prompt (Windows) and type
and run the command with the return key.
This should print the python version.
Git and GitHub
We will use GitHub to manage experiment files and host the experiment. To interact with GitHub, you need to make sure that you have
To test whether you have git installed, open the Termninal (on MacOS or on Linux) or the Anaconda Prompt (Windows) and run
If you get an error message, make sure to install Git:
- Install git. You can read the rest of the linked tutorial to learn more about git.
- First time Git setup: The main thing is to configure
If you don’t already have a GitHub account, sign up for one.
Depending on whether you want to set up an experiment on Prolific Academic or Amazon’s Mechanical Turk, follow one or the other set of the following instructions.
Mechanical Turk and Submiterator
Amazon Mechanical Turk is a crowdsourcing platform well suited for running web-based experiments. We use Supersubmiterator to post experiments through Mechanical Turk and to download the data after participants complete the experiment.
- Follow these instructions to sign up for an Amazon Web Services (AWS) account and a requester account and to create an access key/secret pair on Amazon Mechanical Turk.
- Clone Supersubmiterator and follow the setup instructions to install the
xmltodictpackages and your MTurk credentials (access key/secret pair).]
Prolific and Proliferate
- Sign up for a Prolific account (if you don’t already have one).
- Sign up for a Proliferate account.
- Install the proliferate command line tool.
For analyzing the data we will use R and the tidyverse library.
- Install R
- Install RStudio
- Install the
tidyversepackage: Lauch RStudio and run in the console:
(Note that quotes are needed when you install packages)
- You need to load the package before you can use it:
(Note that there are NO quotes when you load packages)
If you see a list of attached packages (including
dplyretc) then everything is good. (Don’t worry about the conflicts printed afterwards.)
We will edit the code for some experiments and it is generally much easier to edit code with a good editor that supports syntax highlighting of your code. In case you don’t have an editor installed, Atom is a good free editor.
We will cover the theoretical background of pre-registration and pre-register the experiment that you’ll test on the Open Science Foundation (OSF) platform.
- Sign up for an OSF account (if you don’t already have one).
Here is a recap of all the things that should be set up before the course:
- Python 3 is installed.
- Git is installed
- You have a GitHub account
- You have a Prolific account
- You have a Proliferate account
- The Proliferate command-line utility is installed
- R is installed
- RStudio is installed
- A text editor is installed
- You have an OSF account.