Chapter 37 The Winner’s Curse

37.1 Simulating the winners curse when using a t-test

## 
##  Welch Two Sample t-test
## 
## data:  sample(pop1, sample.size) and sample(pop2, sample.size)
## t = 2.0272, df = 2.1438, p-value = 0.1712
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -0.8588384  2.5908924
## sample estimates:
##    mean of x    mean of y 
##  0.859772716 -0.006254302
## [1] "proportion of significant results"
## [1] 0.029