R codes2. Write a simulation in R that shows the distribution of the t-test statistic when the null hypothesis is true. To do this, you should use a for loop that repeatedly performs t-tests comparing sample means of data that come from distributions with the same population mean and standard deviation. Use normO to take samples, t.testO to perform the t-tests, and use “Sstatistic” to extract the t-test statistic from the t.testO procedure (c.g. t.test(x.y)Sstatistic).
OR
OR