Resources associated with each day of the workshop. The content is organised slightly differently to how it was on the day (we’ve had a little more time to merge content), but the material itself is unchanged.
The content in Day 1 provides a discussion of the replication crisis in psychology, and an overview of replication, powering studies and the use of pre-registration. It also discusses workflow and file organisation. The technical side covers how to code online experiments (using javascript, and the jsPsych library in particular), hosting the experiment as a web application using Google App Engine, and downloading data from the web application
Note: the files provided above do not contain what you need to download the data; we had to modify them slightly to do that. Here is a new backend.py file and a new index.html file; both of these are slight modifications of the existing ones so go ahead and copy over the ones we gave you with them. (Then type gcloud init and gcloud app deploy to make sure that the new version in the gloud uses them). As explained in the slides, you can now download data by going to your url and adding on /info at the end. This should automatically download a file called results.csv. (If you want to test this, remember to do the experiment at least one time, otherwise you’ll have no data to download!) Once you have the results.csv file, you will need to parse it with the read.R script which will turn it into a tidyverse-friendly csv format. Note also that your experiment is still up! If you want to delete it or take it down, that can be done from cloud.google.com.
Some additional online resources that you may find useful
Additionally… one goal we had when putting all this together was to try to provide you with a sense of the extent to which the tools in this Summer School can be adapted to many different purposes. One hint to that is to look at how the resources for Day 2 have been constructed.
xaringan
, an R package that provides an interface between R Markdown and some neat javascript libraries.gganimate
that extends the functionality of ggplot2
to allow animation)Once you start feeling comfortable in R, it’s remarkable what fun things you can find to do with it!