[R] multinormial runs tests?

liujb liujulia7 at yahoo.com
Thu Sep 24 16:52:27 CEST 2009


Dear R users,

I would like to test the randomness in a series of N values (N>=2). I know
that runs.test works for dichotomous factor only:
x <- rep(c(1,2), 50)
runs.test(factor(x))


However it doesn't work for series that can take any N values (N>2):
x <- rep(c(1,2,5,4),50)
runs.test(factor(x))

Error in runs.test(factor(x)) : x does not contain dichotomous data

Are there any R function that does multinormial runs test?

Thank you very much,
sincerely,
Julia


-- 
View this message in context: http://www.nabble.com/multinormial-runs-tests--tp25574075p25574075.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list