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 comentarios

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

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Preguntada:

el 17 de Jul. de 2022

Comentada:

el 19 de Jul. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by