In: Statistics and Probability
Is there an R code that would allow me to run a random sample
10,000 times without having to run the code created
individually?
I have completed the first two tasks, but I do not know if R has a
repeat code that would speed things up.
Now using the “Minutes” column generate a random sample size of 5. (THIS HAS ALREADY BEEN COMPLETED BY ME. JUST ANSWER THE QUESTION CONCERNING THE THIRD ONE AND THE R CODE).
Calculate the sample mean and record it (write a direct R program to record this) (THIS HAS ALREADY BEEN COMPLETED. PLEASE JUST ANSWER THE LAST QUESTION CONCERNING THE R CODE)
Continue steps (b) and (c) 10,000 times (that means you have recorded 10,000 sample means)