title: Simulating t-test p-values using a for loop
body: <p>For this project I am required to use an R script to simulate the effectiveness of the t-test. I must use a for loop will be used to carry out the following 2000 times:</p>
  
  <p>Would the loop look something like this </p>
  
  <pre><code>i &lt;- 1
  for (i &lt;= 2001) { 
      x &lt;-rf(5,df1=5,df2=10)
      b &lt;- df2
      p.value &lt;-t.test(x,mu=(b/(b-2))$p.value
      i &lt;- i+1
  }
  </code></pre>