Welcome to my blog

I mainly post about data analysis and applied statistics stuff, usually in R. Frequent topics include Bayesian statistics, causal inference, multilevel models, and statistical power.

Written by A. Solomon Kurz

Example power analysis report

If you plan to analyze your data with anything more complicated than a t-test, the power analysis phase gets tricky. I’m willing to bet that most applied researchers have never done a power analysis for a multilevel model and probably have never seen what one might look like, either. The purpose of this post is to give a real-world example of just such an analysis.

By A. Solomon Kurz

July 2, 2021

Make ICC plots for your brms IRT models

The purpose of this blog post is to show how one might make ICC and IIC plots for brms IRT models using general-purpose data wrangling steps.

By A. Solomon Kurz

June 29, 2021

Don’t forget your inits

When your MCMC chains look a mess, you might have to manually set your initial values. If you’re a fancy pants, you can use a custom function.

By A. Solomon Kurz

June 5, 2021

Yes, you can fit an exploratory factor analysis with lavaan

Just this past week, I learned that, Yes, you can fit an exploratory factor analysis (EFA) with lavaan. The purpose of this blog post is to make EFAs with lavaan even more accessible and web searchable by walking through a quick example.

By A. Solomon Kurz

May 11, 2021

blogdown updates prompted a website overhaul: These are my notes

The purpose of this post is to highlight some of the steps I took to rebuild my academic-style blogdown website. At a minimum, I’m hoping this post will help me better understand how to set up my website the next time it needs an overhaul. Perhaps it will be of some help to you, too.

By A. Solomon Kurz

April 27, 2021

Effect sizes for experimental trials analyzed with multilevel growth models: Two of two

This post is the second of a two-part series. In the first post, we explored how one might compute an effect size for two-group experimental data with only 2 time points. In this second post, we fulfill our goal to show how to generalize this framework to experimental data collected over 3+ time points. The data and overall framework come from Feingold (2009).

By A. Solomon Kurz

April 22, 2021

Effect sizes for experimental trials analyzed with multilevel growth models: One of two

The purpose of this series is to show how to compute a Cohen’s-d type effect size when you have longitudinal data on 3+ time points for two experimental groups. In this first post, we’ll warm up with the basics. In the second post, we’ll get down to business. The data and overall framework come from Feingold (2009).

By A. Solomon Kurz

January 26, 2021

Regression models for 2-timepoint non-experimental data

I recently came across Jeffrey Walker’s free text, Elements of statistical modeling for experimental biology, which contains a nice chapter on 2-timepoint experimental designs. Inspired by his work, this post aims to explore how one might analyze non-experimental 2-timepoint data within a regression model paradigm.

By A. Solomon Kurz

December 29, 2020

Multilevel models and the index-variable approach

PhD candidate Huaiyu Liu recently reached out with a question about how to analyze clustered data. Liu’s basic setup was an experiment with four conditions. The dependent variable was binary, where success = 1, fail = 0. Each participant completed multiple trials under each of the four conditions. The catch was Liu wanted to model those four conditions with a multilevel model using the index-variable approach McElreath advocated for in the second edition of his text. Like any good question, this one got my gears turning. Thanks, Liu! The purpose of this post will be to show how to model data like this two different ways.

By A. Solomon Kurz

December 9, 2020