Blog Archives

Fitting Bayesian Linear Mixed Models for continuous and binary data using Stan: A quick tutorial

March 27, 2017
By

I want to give a quick tutorial on fitting Linear Mixed Models (hierarchical models) with a full variance-covariance matrix for random effects (what Barr et al 2013 call a maximal model) using Stan. For a longer version of this tutorial, see: Sorensen, Hohenstein, Vasishth, 2016. Prerequisites: You need to have R and preferably RStudio installed;...

Read more »

Two papers, with code: Statistical Methods for Linguistic Research (Parts 1 and 2)

August 2, 2016
By

Here are two papers that may be useful for researchers in psychology, linguistics, and cognitive science:Shravan Vasishth and Bruno Nicenboim. Statistical methods for linguistic research: Foundational Ideas - Part I. Language and Linguistics Compass, 2016. In Press. PDF: http://bit.ly/VasNicPart1Code: http://bit.ly/VasNicPart1CodeBruno Nicenboim and Shravan Vasishth. Statistical methods for linguistics research: Foundational Ideas - Part II. Language...

Read more »

A simple proof that the p-value distribution is uniform when the null hypothesis is true

April 26, 2016
By
A simple proof that the p-value distribution is uniform when the null hypothesis is true

Thanks to Mark Andrews for correcting some crucial typos (I hope I got it right this time!). Thanks also to Andrew Gelman for pointing out that the proof below holds only when the null hypothesis ...

Read more »

Automating R exercises and exams using the exams package

January 17, 2016
By

It's a pain to design statistics exercises each semester, and because students from previous share old exercises with the new incoming students, it's hard to design simple exercises that students haven't already seen the answers to. On top of that, som...

Read more »

My MSc thesis: A meta-analysis of relative clause processing in Mandarin Chinese using bias modelling

January 6, 2016
By

Here is my MSc thesis, which was submitted to the University of Sheffield in September 2015. The pdf is here.Title: A Meta-analysis of Relative Clause Processing in Mandarin Chinese using Bias Modelling AbstractThe reading difficulty associated wi...

Read more »

Some reflections on teaching frequentist statistics at ESSLLI 2015

August 17, 2015
By
Some reflections on teaching frequentist statistics at ESSLLI 2015

I spent the last two weeks teaching frequentist and Bayesian statistics at the European Summer School in Logic, Language, and Information (ESSLLI) in Barcelona, at the beautiful and centrally located Pompeu Fabra University. The course web page for the first week is here, and the web page for the second course is here. (NOTE: Uni Potsdam...

Read more »

Getting a statistics education: Review of the MSc in Statistics (Sheffield)

February 14, 2015
By
Getting a statistics education: Review of the MSc in Statistics (Sheffield)

Some background:I started using statistics for my research sometime in 1999 or 2000. I was a student at Ohio State, Linguistics, and I had just gotten interested in psycholinguistics. I knew almost nothing ...

Read more »

A weird and unintended consequence of Barr et al’s Keep It Maximal paper

January 2, 2015
By

Barr et al's well-intentioned paper is starting to lead to some seriously weird behavior in psycholinguistics! As a reviewer, I'm seeing submissions where people take the following approach:1. Try to fit a "maximal" linear mixed model.  If you get...

Read more »

Should we fit maximal linear mixed models?

November 25, 2014
By
Should we fit maximal linear mixed models?

Recently, Barr et al published a paper in the Journal of Memory and Language, arguing that we should fit maximal linear mixed models, i.e., fit models that have a full variance-covariance matrix specification for subject and for items. I suggest here t...

Read more »

Simulating scientists doing experiments

November 22, 2014
By

Following a discussion on Gelman's blog, I was playing around with simulating scientists looking for significant effects. Suppose each of 1000 scientists run 200 experiments in their lifetime, and suppose that 20% of the experiments are such that the n...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)