Toward a grammar of psychological experiments - Danielle Navarro

January 30, 2020 Danielle Navarro

Why does a psychological scientist learn a programming language? While motivations are many and varied the two most prominent are data analysis and data collection. The R programming language is well placed to address the first need, but there are fewer options for programming behavioural experiments within the R ecosystem. The simplest experimental designs can be recast as surveys, for which there are many options, but studies in cognitive psychology, psychophysics or developmental psychology typically require more flexibility. In this talk I outline the design principles behind xprmntr, an R package that provides wrappers to the a javascript library (jsPsych) for constructing web based psychology experiments and uses the plumber package to call server side R code as needed. In doing so, I discuss limitations to the current implementation and what a "grammar of experiments" might look like.

Materials: slides, package.

About the Author

Danielle Navarro

I am a computational cognitive scientist at the University of New South Wales. My research focuses on human concept learning, reasoning and decision making. I'm also interested in language and cultural evolution, cognitive development, and Bayesian methods applied to the behavioural sciences. In the R community I've been particularly focused on teaching statistics to social science student and developing tools that help psychologist use R as a general purpose research tool

More Content by Danielle Navarro
Previous Video
R for Graphical Clinical Trial Reporting - Frank Harrell
R for Graphical Clinical Trial Reporting - Frank Harrell

Interactive graphical reports go a step further and allow the most important information to be presented by...

Next Video
Learning R with humorous side projects - Ryan Timpe
Learning R with humorous side projects - Ryan Timpe

What should you name a new dinosaur discovery, according to neural networks? Which season of The Golden Gir...