Welcome to Kristoffer Magnusson's blog about

R, STATISTICS, PSYCHOLOGY, OPEN SCIENCE, DATA VISUALIZATION

## Articles with the statistics tag

New visualization of the distribution of p-values using d3.js

Here's a new visualization that shows the p-curve distribution when comparing the means of two independent samples for varying effects. Many know that the distribution is uniform when the null is true, but what about when it isn't?

Expected overestimation of Cohen’s d under publication bias

In this post I will use the theoretical and empirical sampling distribution of Cohen’s d to show the expected overestimation due to selective publishing. I will look at the overestimation for various sample sizes when the population effect is 0, 0.2, 0.5 and 0.8. The conclusion is that you should be weary of effect sizes from small samples, and that the issue is rather with type M (magnitude) errors than type I errors. At least is clinical psychology the pervasive problem is overestimation of effects and not falsely rejecting null hypothesis.

Visualizing a One-Way ANOVA using D3.js

A while ago I was playing around with the javascript package D3.js, and I began with this visualization—that I never really finished—of how a one-way ANOVA is calculated. I tried to make it look like a plot from ggplot2 except with interactive elements. Take a look at it after the jump

How to tell when error bars correspond to a significant p-value

Can you tell when error bars based on 95 % CIs or standard errors correspond to a significant p-value? Don’t fret if you think it’s hard, a study from 2005 showed that researchers in psychogoly, behavior neuroscience and medicine had a hard time judging when error bars from two independent groups signified a significant difference