The Curious Engineer

All blogs / Math

R Psychologist

rpsychologist.com

Interactive visualizations for understanding statistics, and writing on quantitative methods and causal inference, by Kristoffer Magnusson.

MathScience

Posts
49 from 20 Mar 2012 to 24 Oct 2026
Posting
now and then (5 in the last year)
Kind
personal blog
Feed
https://rpsychologist.com/rss.xml

2026 4

  1. Cohen's d Effect size and the overlap between two distributions.
  2. Correlation What a correlation coefficient looks like as a scatter.
  3. Likelihood Maximum likelihood estimation and the likelihood ratio, Wald, and score tests.
  4. Why Adjusted Regression Coefficients Are Less Descriptive Than They Look

2024 1

  1. Introducing PowerLMM.js: Browser-based power analysis for longitudinal models with dropout

2022 1

  1. The Cohen's d app translation project

2020 2

  1. Why linear mixed-effects models are probably not the solution to your missing data problems
  2. Heterogeneous treatment effects and homogeneous outcome variances

2019 1

  1. Mediation, confounding, and measurement error

2018 9

  1. Change over time is not "treatment response"
  2. New paper: The consequences of ignoring therapist effects in longitudinal data analysis
  3. Estimating treatment effects and ICCs from (G)LMMs on the observed scale using Bayes, Part 1: lognormal models
  4. Do you really need a multilevel model? A preview of powerlmm 0.4.0
  5. Power analysis for longitudinal multilevel models: powerlmm 0.3.0 is now out on CRAN Apr 17, 2018
  6. Slides from my talk on how to do power analysis for longitudinal 2- and 3-level models. Apr 11, 2018
  7. Power analysis for longitudinal multilevel models: powerlmm 0.2.0 is now out on CRAN Mar 21, 2018
  8. Confounded dose-response effects of treatment adherence: fitting Bayesian instrumental variable models using brms Feb 1, 2018
  9. Are parallel simulations in the cloud worth it? Benchmarking my MBP vs my Workstation vs Amazon EC2 Jan 26, 2018

2017 2

  1. Introducing 'powerlmm' an R package for power calculations for longitudinal multilevel models Aug 24, 2017
  2. Where Cohen went wrong – the proportion of overlap between two normal distributions Jan 23, 2017

2016 1

  1. New d3.js visualization: Equivalence, non-inferiority and superiority testing Nov 29, 2016

2015 6

  1. New d3.js visualization: Bayesian inference Nov 22, 2015
  2. [Updated] Statistical Power and Significance Testing Visualization Aug 24, 2015
  3. [Update] P-curve visualization updated with log x-axis Aug 13, 2015
  4. New d3.js visualization: the t-distribution and its normal approximation Jun 8, 2015
  5. Using R and lme/lmer to fit different two- and three-level longitudinal models Apr 21, 2015
  6. New visualization of the distribution of p-values using d3.js Mar 21, 2015

2014 6

  1. Interpreting Confidence Intervals – new d3.js visualization Nov 28, 2014
  2. New d3.js visualization: Interpreting Correlations Aug 1, 2014
  3. Some exploratory evidence that wait-list conditions may act as a nocebo in psychotherapy trials Apr 14, 2014
  4. New d3.js visualization: Understanding Significance Testing and Statistical Power Feb 2, 2014
  5. New d3.js visualization: Interpreting Cohen’s d effect size Jan 13, 2014
  6. Calculating the Overlap of Two Normal Distributions Using Monte Carlo Integration Jan 8, 2014

2013 5

  1. Visualizing a One-Way ANOVA using D3.js May 31, 2013
  2. Are the Current Criteria for Empirically Supported Treatments Too Lenient? May 30, 2013
  3. Creating a typical textbook illustration of statistical power using either ggplot or base graphics May 26, 2013
  4. Working with shapefiles, projections and world maps in ggplot May 23, 2013
  5. Analytical and simulation-based power analyses for mixed-design ANOVAs May 22, 2013

2012 10

  1. PubMed publications in 2011 by 202 world countries: who’s the winner? May 7, 2012
  2. How to download complete XML records from PubMed and extract data Apr 27, 2012
  3. More PubMed data mining: looking at top 20 CBT journals Apr 26, 2012
  4. Short R script to plot effect sizes (Cohen's d) and shade overlapping area Apr 23, 2012
  5. An R Script to Automatically download PubMed Citation Counts By Year of publication Apr 19, 2012
  6. How to work with Google n-gram data sets in R using MySQL Apr 12, 2012
  7. Simple data mining and plotting data on a map with ggplot2 Apr 2, 2012
  8. Ggplot2, PubMed citation frequency and DSM-IV Axis I disorders by year Mar 31, 2012
  9. Using Ggplot2 to plot last.fm top 100 albums Mar 22, 2012
  10. Monty Hall Simulations Mar 20, 2012

Undated 1

  1. Visualizations