* FairCoin3 Example; * Perform a one-sample t-test for testing whether the proportion of heads is 0.5; flips = c(scan( )) 0 0 1 0 0 1 0 1 0 1 1 0 1 0 1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 1 0 t.test(flips, NULL, mu=0.5)