# Jörn Alexander Quent's notebook

where I share semi-interesting stuff from my work

## Finding a U-shape with Bayesian interrupted regression

The outset of the problem In one of my project, I’d like to show that there is a U-shape relationship between two variables. The traditional way to do this would be to fit a quadratic model and test whether the quadratic term is different from zero. However, Simonsohn (2018) among other correctly points out that evidence for a quadratic fit is not enough and there might be situations where the quadratic term is not zero but there is no true u-shape. Read more →

## The priors that I use for logistic regression now

Problem In my power simulation of the U-shape experiment, I noticed that the suggested priors (click here) actually do not work very well for Bayes Factor (BF) analysis as they are too flat and hence BF are too conservative. That is because uniform or very flat priors lead to less evidence in favour of the alternative hypothesis. Read more →

## Bayesian sequential designs are superior

This post is based on a short talk that I gave at the MRC CBU on the 29 July 2020 for a session on statistical power. The slides of presentation can be found in my GitHub repository. This repository also includes the data and the scripts that were used to run the simulations and to create the figures. Read more →

## Comparing different methods to calculate Bayes factors for a simple model

Introduction Comparing the four BF methods Evidence for null hypothesis: brms vs. ttestBF() How much more conservative is the bmrs approach? Directed vs. non-directed hypothesis Conclusion Introduction In this post, I’d like to examine how different ways to calcualte Bayes factors (BF) compare with each other for a simple model. Read more →

## Understanding mixed linear models

Preface Note: This is an old post from my early PhD time that I slightly edited but share again because it would be interesting to one or two people. This work documents my attempt to understand the model structure of mixed linear models or multilevel models. I adapted a formula that I found on Wikipedia and work myself through the different models and test whether I am able to retrieve the different parameters with lmerTest. Read more →