Gallery/Inference & uncertainty
Inference & uncertainty
Bootstrap, confidence intervals, power, agreement and meta-analysis forest plots.
Inference & uncertainty
Bootstrap distribution
Resampled correlation with percentile and BCa 95% confidence intervals.
boot::boot() + boot::boot.ci()Inference & uncertainty
What a 95% confidence interval means
100 surveys of 30 people drawn from 944 ANES respondents; the 95% CIs for mean age that miss the true value are in red.
teaching classic (e.g. TeachingDemos::ci.examp())Inference & uncertainty
Power curve
Power of a two-sample t-test against sample size for small, medium and large effects.
pwr::pwr.t.test() + plot()Inference & uncertainty
Bland–Altman plot
Do two coders place party manifestos on the left–right scale the same way? Bias and 95% limits of agreement.
BlandAltmanLeh::bland.altman.plot() / blandr::blandr.draw()Inference & uncertainty
Meta-analysis forest plot
Do teacher expectations raise pupils' IQ? 19 "Pygmalion" experiments, a random-effects pooled diamond and heterogeneity statistics.
meta::forest() / metafor::forest()Inference & uncertainty
Funnel plot
Are small "Pygmalion" studies more optimistic? 19 teacher-expectancy effects against their standard error, with a pseudo 95% funnel and Egger's test.
metafor::funnel() + metafor::regtest()