help needed applying varm

Hi,
I am Jung struggeling with a simple problem. I am trying to apply varm to have irf.
I conver my dataset to table using readtable.
I just try to follow the steps using 'Data_JDanish' suggested MathWorks.
but there is only error messages. How can I convert my dataset to 'Data_JDanish' type?
I attached my dataset
appreciated~

5 件のコメント

Walter Roberson
Walter Roberson 2022 年 7 月 17 日
編集済み: Walter Roberson 2022 年 7 月 18 日
Jungsung
Jungsung 2022 年 7 月 18 日
YES sort of. I found the example when I search with the keyword 'VAR model impulse response'
Walter Roberson
Walter Roberson 2022 年 7 月 18 日
Unfortunately I do not have that toolbox installed, and MATLAB Online cannot open mlx files in the editor.
What is your current code, and what error messages are you seeing?
Jungsung
Jungsung 2022 年 7 月 19 日
HI my current code and error messages are following
clear
clc
addpath('D:\coding\IAR');
%% table and picture
T = readtable('bear_data.xlsx','Sheet','data');
TT = table2timetable(T);
head(TT,5)
stackedplot(TT)
%% var
ind = readtable('bear_data.xlsx','Sheet','data','Range','B1:D166');
Mdl = varm(3,2);
Mdl.SeriesNames = ind.Properties.VariableNames;
%% run
Mdl = estimate(Mdl, ind.Series);
-----------------error message ----------------------------
'Series' is an unrecognized table variable name.
I found 'Mdl' 1*1 varm created but when I excute run process the error occured.
thanks.
Jeffrey Clark
Jeffrey Clark 2022 年 7 月 19 日
@Jungsung, readtable isn't creating a table column called Series; file ind.xlsx only contains these column headers:
date cpi gap wage

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

回答 (0 件)

タグ

質問済み:

2022 年 7 月 17 日

コメント済み:

2022 年 7 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by