I am trying to use a Monte Carlo simulation to obtain a t statistic on two vectors. I don't know how to put a specific vector in.
I tried using the MonteCarlo package and minrunif()
noNBA <- c(7.2, 10.5, 6, 8, 8, 9.5, 9, 11, 11.2, 8.3)
NBA <- c(8, 6.7, 8.4, 9.3, 9.1, 6, 7.4, 5.7)
These are the two vectors, so I tried this code for one vector
min(runif(noNBA)) [1] 0.07535907
but I got a decimal value.
I should be obtaining a t-statistic somewhere around 1-2. But not sure how to get a t-statistic from a monte carlo sim.