Page 1 of 1

RUNTEST - Non-parametric independence test

PostPosted: Mon May 07, 2012 3:15 pm
by TomDoan
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
Procedure file
(2.07 KiB) Downloaded 58 times


@RunTest( options ) x start end

Options

[ESTIMATE]/NOESTIMATE indicates whether the prob(success) should be estimated or input
PI=input probability of 1 [.5] (used if NOESTIMATE)