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 Commenti

Walter Roberson
Walter Roberson il 17 Lug 2022
Modificato: Walter Roberson il 18 Lug 2022
Jungsung
Jungsung il 18 Lug 2022
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?
Jungsung
Jungsung il 19 Lug 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 il 19 Lug 2022
@Jungsung, readtable isn't creating a table column called Series; file ind.xlsx only contains these column headers:
date cpi gap wage

Accedi per commentare.

Risposte (0)

Richiesto:

il 17 Lug 2022

Commentato:

il 19 Lug 2022

Community Treasure Hunt

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

Start Hunting!

Translated by