[R] Randomization Test

Ogbos Okike g||ted|||e2014 @end|ng |rom gm@||@com
Mon Jan 28 19:41:54 CET 2019


Dear Contributors,

I conducting epoch analysis. I tried to test the significance of my
result using randomization test.

Since I have 71 events, I randomly selected another 71 events, making
sure that none of the dates in the random events corresponds with the
ones in the real event.

Following the code I found here
(https://www.uvm.edu/~dhowell/StatPages/R/RandomizationTestsWithR/Random2Sample/TwoIndependentSamplesR.html),
I combined these two data set and used them to generate another 5000
events. I then plotted the graph of the mean differences for the 5000
randomly generated events. On the graph, I indicated the region of the
mean difference between the real 71 epoch and the randomly selected 71
epoch.

Since the two tail test shows that the mean difference falls at the
extreme of the randomly selected events, I concluded that my result is
statistically significant.



I am attaching the graph to assistance you in you suggestions.

I can attach both my code and the real and randomly generated events
if you ask for it.

My request is that you help me to understand if I am on the right
track or no. This is the first time I am doing this and except the
experts decide, I am not quite sure whether I am right or not.

Many thanks for your kind concern.

Best
Ogbos


More information about the R-help mailing list