R scripting tutorial / scripting introduction (PDF)


I still remember how hard it was for me to learn R scripting, especially how hard it was to come up with solutions to allegedly simple problems.
This is why I decided to write an introduction to R scripting showing you how to write R scripts on your own. The manuscript targets specifically people who want to learn how to write some simple scripts. I do so by showing how to clean and preprocess a linguistic corpus for deeper statistical analysis.
Also, I provide an introduction how to script simulations using error-driven learning.

This is not an introduction on how to analyze data, but an introduction on how to program R scripts. If you have any suggestions, what should be in it, please write me.
The manuscript is work in progress! It is far from perfect, finished or ready. Stuff might not work, please be patient. Nevertheless it shows a good deal of how R is working.

Using Generalized Additive Model (GAM) for statistical analysis

If you are interested in running a GAM analysis, you can find here an introduction
to this non-linear statistical technique.

Managing Collinearity in Multi-Variate Analysis

Together with my colleagues Harald Baayen and Peter Hendrix, I published a paper on managing collinearity in the Journal of Phonetics called “Strategies for managing collinearity in multivariate linguistic data”.
The paper can be downloaded here.
The data and the scripts can be downloaded from my osf account here.

Linguistic Corpora

A corpus of Schlieren photography of speech production – Potential to study aerodynamics of labial, nasal and vocalic processes. Youtube Videos and PDF

The Karl Eberhards Corpus of spontaneously spoken Southern German in dialogues. URL

LaTeX Templates

Writing papers and preparing presentations or posters in LaTeX — sort of a programming language for preparing nicely formatted manuscripts — becomes more and more of a standard in academia. Here you find links to my templates for these three formats. They are on overleaf, an amazing online platform for editing in LaTeX. This youtube video by Matthew Salomone  gives a quick and dirty introduction to working with LaTeX on overleaf.

Paper Template (A4); Presentation Template

Poster Template (A0, portrait format — still needs to be prepared)

Tast-Dynamic Simulation of Articulatory Gestures

Illustration of gestural coordination

The task-dynamic system of articulation, as proposed in the Articulatory Phonology / Task-Dynamic framework developed, among others, by Catherine Browman, Louis Goldstein, Elliot Saltzman and Dani Byrd, allows to simulate the behavior of articulators using a damped harmonic oscillator. I implemented the code by Dani Byrd and Elliot Saltzman which proposes the “pi-gesture” to modulate gestural coordination.
On this website you can modulate different aspects of articulation such as the strength of the pi-gesture, the duration of the gesture, etc..
The simulation was programmed in R in RStudio and shared in shinyapps.

4 thoughts on “Resources

  1. Hi Fabian,
    While looking for your paper on Variable selection I found your blog. Very nice, lot of cool stuff!
    Long life and all the rest,


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s