Undefined function or variable

1 回表示 (過去 30 日間)
Keran
Keran 2020 年 7 月 31 日
コメント済み: Image Analyst 2020 年 7 月 31 日
Hi,
I have problem when using Granger causality test on Matlab. I have defined var model and estimated the parameters and then used following code, where mde is var(2,3) model:
[hgranger,summary] = gctest(mde)
I get error:
Undefined function 'gctest' for input arguments of type 'varm'.
Error in Untitled (line 488)
[hgranger,summary] = gctest(mde)

回答 (1 件)

Image Analyst
Image Analyst 2020 年 7 月 31 日
Evidently that's not a function that's built-in to any of your toolboxes. Why do you think it should be? You need to ask the author of the code that calls that function for the source code for that gctest() function.
  2 件のコメント
Keran
Keran 2020 年 7 月 31 日
Yes, it is built-in econometrics toolbox and I'm quite confused as this is first time as this happends. I thought this should work as is, like the link to the test description below describes. Also how can I find the author of this code?
Image Analyst
Image Analyst 2020 年 7 月 31 日
What does it say if you type ver in the command window? Does it show a license available for that toolbox? If not, contact the sales department to buy a copy. If it does show a license available, then contact tech support to see why it doesn't work. What does this show:
>> ver
>> which -all gctest
When you paste back here, delete your license number.
Also run the attached script, Toolbox_License_Info.m, that will check for a license for all toolboxes listed in your ver command. Let us know what it says.

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

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by