Hey guys so I know there is a lot out there on simulations but I havent found exactly what I need. I have a vector of views data. Which is the number of views on a video in millions.
totalBeforeViews = (c( 1.19,2.29,2.05,1.96,2.07,1.77,1.50,1.77,4.49,9.76,6.55,5.17,6.56,10.31))
I want to do say a 1000 replicated simulations of this data. So I am looking for some sort of function that would do the simulations randomly but trained in a way by the vector above. I was thinking of doing this
sdViewsBefore = sd(totalBeforeViews)
simulatedBeforeViews = rnorm(n = 1000, mean = totalBeforeViews, sd = sdViewsBefore)
However, this gets me back negative values which I cannot use since there cant be negative views on a video. Also the end goal of this is for me to run a 1000 T-Tests on this verse another set of data I have. Any help is appreciated. Thanks