This does a "run test" for an input series which shows two states (0 and 1). It tests whether the series appears to be sequentially independent versus the alternative that there are longer than expected runs of single states.
runtest.src
Detailed description
RUNTEST—Non-parametric independence test
RUNTEST—Non-parametric independence test
Last bumped by TomDoan on Tue Sep 05, 2017 10:01 am.