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 个评论

YES sort of. I found the example when I search with the keyword 'VAR model impulse response'
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?
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.
@Jungsung, readtable isn't creating a table column called Series; file ind.xlsx only contains these column headers:
date cpi gap wage

请先登录,再进行评论。

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by