Jarque-Bera test!

4 ビュー (過去 30 日間)
Emre Yavuz
Emre Yavuz 2019 年 5 月 20 日
コメント済み: Star Strider 2019 年 5 月 20 日
Hey! Am an undergrad student very new to MATLAB, and I was trying to run the Jarque-Bera test!
The computer has given me this output:
Error using jbtest (line 74)
Input X must be a vector of real values.
I am not sure how to interpret this! I would be very grateful for any guidance!

回答 (1 件)

Star Strider
Star Strider 2019 年 5 月 20 日
Guessing here, since we don’t know what ‘x’ is.
It appears that ‘x’ may be complex. If so, your best approach is likely to use the real (link) function to extract the real parts.
  2 件のコメント
Emre Yavuz
Emre Yavuz 2019 年 5 月 20 日
Hey Star Strider,
Thanks so much for your reply!
In response to another thread I posted, I tried the command below:
One option is to use the table2array (link) function to extract your table data to an array kstest can use.
Once I did this, I then used the [h,p,jbstat,critval] = jbtest(A), as I had named the Array 'A'!
The test then worked!
Star Strider
Star Strider 2019 年 5 月 20 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by