linear regression of time series with time index

9 ビュー (過去 30 日間)
mirewuti muhetaer
mirewuti muhetaer 2020 年 1 月 6 日
回答済み: Ridwan Alam 2020 年 1 月 6 日
Hi, let us say we have a variable y and quarter index for 10 years. Let me use t to denote for time index. If i want to run linear regression of this kind:
y_t =beta_0 + beta_1 * y_{t-1} +beta_2 * t + error_t;
how will include the time index t in the regression?
I searched a lot, but could not find satisfying answer or solution.
thanks for the help.

回答 (1 件)

Ridwan Alam
Ridwan Alam 2020 年 1 月 6 日
If you have a fixed equation like the one provided, I believe you are looking for parameter estimation methods to find beta_0, beta_1, beta_2. If this is the case, you can try cftool to fit y and t to your equation:

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by