Having Trouble Using The collintest!

5 ビュー (過去 30 日間)
Chris Herdelin
Chris Herdelin 2020 年 6 月 5 日
回答済み: Ashwin 2020 年 6 月 19 日
>> collintest(Q)
Error using svd
Input to SVD must not contain NaN or Inf.
Error in collintest (line 254)
[~,S,V] = svd(XS,0);
Can anyone help with this error? I am trying to use the collintest with lagged values of CPI data. Also, how do I include the constant in the matrix and therefore compute the Belsley collinearity diagnostics? Thanks in advance for any help you can give!

回答 (1 件)

Ashwin
Ashwin 2020 年 6 月 19 日
The error that occurred was due to the presence of a NaN or Inf value in the matrix, and since the svd function within collintest cannot handle that, one approach to take to solving that is presented in a similar solution below:
As for the second part of the question, not sure what you mean by including the constant in the matrix, but this link should help you understand the function and should hopefully help you with the second part as well.

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by