Diffusion/Wiener Model Analysis with brms – Part I: Introduction and Estimation

Stan is probably the most interesting development in computational statistics in the last few years, at least for me. The version of Hamiltonian Monte-Carlo (HMC) implemented in Stan (NUTS, ) is extremely efficient and the range of probability distributions implemented in the Stan language allows to fit an extremely wide range of models. Stan has […]

ANOVA in R: afex may be the solution you are looking for

Prelude: When you start with R and try to estimate a standard ANOVA , which is relatively simple in commercial software like SPSS, R kind of sucks. Especially for unbalanced designs or designs with repeated-measures replicating the results from such software in base R may require considerable effort. For a newcomer (and even an old […]

Mixed models for ANOVA designs with one observation per unit of observation and cell of the design

Together with David Kellen I am currently working on an introductory chapter to mixed models for a book edited by Dan Spieler and Eric Schumacher (the current version can be found here). The goal is to provide a theoretical and practical introduction that is targeted mainly at experimental psychologists, neuroscientists, and others working with experimental […]

rtdists 0.7-2: response time distributions now with Rcpp and faster

It took us quite a while but we have finally released a new version of rtdists to CRAN which provides a few significant improvements. As a reminder, rtdists [p]rovides response time distributions (density/PDF, distribution function/CDF, quantile function, and random generation): (a) Ratcliff diffusion model based on C code by Andreas and Jochen Voss and (b) […]

New Version of rtdists on CRAN (v. 0.4-9): Accumulator Models for Response Time Distributions

I have just submitted a new version of rtdists to CRAN (v. 0.4-9). As I haven’t mentioned rtdists on here yet, let me simply copy it’s description as a short introduction, a longer introduction follows below: Provides response time distributions (density/PDF, distribution function/CDF, quantile function, and random generation): (a) Ratcliff diffusion model based on C […]

Hierarchical MPT in Stan I: Dealing with Convergent Transitions via Control Arguments

I have recently restarted working with Stan and unfortunately ran into the problem that my (hierarchical) Bayesian models often produced divergent transitions. And when this happens, the warning basically only suggests to increase adapt_delta: Warning messages: 1: There were X divergent transitions after warmup. Increasing adapt_delta above 0.8 may help. 2: Examine the pairs() plot […]

Installing R-devel on Linux (Ubuntu/Mint)

This post has been updated: 1. July 2016: Updates thanks to comment of Frederik Eaton 2. April 2016: Included downloading and building recommended package (I couldn’t check packages requiring recommended packages without that). 29. March 2016: Updated r-devel.sh script as it stopped working (Thanks to Matt Flor for noticing that). 15. November 2017: Removed installing of […]