[R] Need some help
Daniel Lakeland
dlakelan at street-artists.org
Tue Oct 16 20:30:05 CEST 2007
On Tue, Oct 16, 2007 at 02:06:47PM -0400, jim holtman wrote:
> If what you are asking for is to see how many times it crosses the
> axis when 'accumulating' the values of the top (+1, -1), then the
> following will do it - this is for 1000 and shows there are 32
> crossings of the axis.
I think what he wants is the number of times that the current sample
is different from the previous sample. (ie. imagine heads = 1 and
tails = -1 how many times does the sequence change sign?)
--
Daniel Lakeland
dlakelan at street-artists.org
http://www.street-artists.org/~dlakelan
More information about the R-help
mailing list