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