[R] simulate a null expectation

2007-08-06 Thread Ryan Briscoe Runquist
Hello, I am trying to write a simulation to generate a null hypothesis so that I can test my data. Essentially we started out with a grid of points and I have a symmetrical matrix of the distance between all of these points. I then want to simulate random movement. So I want to be able to

Re: [R] simulate a null expectation

2007-08-06 Thread Moshe Olshansky
Hi Ryan, I think that the only function you need is the one which generates random variable. The simplest one is to generate a uniform (0,1) variable U and then do not move if U 0.25, move to the first nearest point if 0.25 = U 0.5, move to the second nearest point if ).5 = U 0.75 and move to