How to do OlS to get the residual?

4 ビュー (過去 30 日間)
Wong Yi
Wong Yi 2016 年 10 月 5 日
コメント済み: Star Strider 2016 年 10 月 6 日
The model is y=a+bt (t was the time,I changed it into id,y means the GDP per captital of US,a means the intercept) Here it is better that y could be transferred into log formal I am aimed at getting the minimum of the (y-yhat)^2. Further more ,I need to write code about it. But I have no idea where and how I can start it Could you tell me the code and logicality. Many thanks.

採用された回答

Star Strider
Star Strider 2016 年 10 月 5 日
  5 件のコメント
Wong Yi
Wong Yi 2016 年 10 月 6 日
What 's the meaning of d
Star Strider
Star Strider 2016 年 10 月 6 日
In How can I do log-linear de-trending in data? my original Answer addressing this problem, ‘d’ is the data matrix returned by the xlsread call, where ‘d(:,1)’ was the time vector, ‘d(:,2)’ USA, and ‘d(:,3)’ JPN.
Please see that Answer for a comprehensive discussion of the problem and my approach to the solution.

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

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by