RUNTEST - Non-parametric independence test

Use this forum to post complete RATS "procedures". Please be sure to include instructions on using the procedure and detailed references where applicable.

RUNTEST - Non-parametric independence test

Postby TomDoan » Mon May 07, 2012 3:15 pm

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)
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Return to RATS Procedures

Who is online

Users browsing this forum: No registered users and 1 guest

cron