Skip to content

Instantly share code, notes, and snippets.

View Lakens's full-sized avatar

Daniel Lakens Lakens

View GitHub Profile
@tyarkoni
tyarkoni / t1_t2_correlation_sim.py
Last active February 23, 2016 02:15
Simulates correlation between effect sizes of original studies and replication studies
import numpy as np
import scipy.stats as ss
import matplotlib.pyplot as plt
g1_d_mu = 0.4
g1_d_sd = 0.4
prop_null = 0.3
n_subs = 20
n_studies = 400