MVJB - Multivariate Jarque-Bera test

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

MVJB - Multivariate Jarque-Bera test

Postby TomDoan » Mon Jan 23, 2012 1:58 pm

Computes a multivariate version of the Jarque-Bera test for normality. Note that there are more sophisticated versions of this (for instance, Doornik and Hansen, "An Omnibus Test for Univariate and Multivariate Normality"). This just transforms the input residual series to uncorrelated components (using an eigenbased factorization if not provided by the user) and sums up the univariate JB statistics from those.

mvjb.src
Procedure file - requires RATS 7.3 or later
(2.51 KiB) Downloaded 94 times


@MVJB( options) u start end

Parameters

u VECTOR of SERIES
start end Range for the calculation [by default, the maximum combined range of the u's]


Options
Note: one of these must be supplied.
SIGMA=SYMMETRIC covariance matrix of u
FACTOR=RECTANGULAR factor of the covariance matrix of u.
HMATRICES=SERIES[SYMM] of time-varying covariance matrices.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: MVJB - Multivariate Jarque-Bera test

Postby ying2728 » Tue Dec 11, 2012 5:52 pm

When I used this procedure, I got this error message:

@mvjb(hmatrices=hh) u
## OP3. This Instruction Does Not Have An Option HMA
>>>>hmatrices=<<<<

Thanks.
ying2728
 
Posts: 3
Joined: Thu Nov 01, 2012 6:17 pm

Re: MVJB - Multivariate Jarque-Bera test

Postby TomDoan » Thu Dec 13, 2012 4:00 pm

The procedure posted here has it, and the 8.2 distribution has it. So you must be using an older version of the procedure.
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