⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ecm_d.m

📁 计量工具箱
💻 M
字号:
% PURPOSE: demonstrate the use of ecm()%          function to estimate an error correction model% ---------------------------------------------% usage: ecm_d% ----------------------------------------------clear all;load test.dat; % a test data set containing               % monthly mining employment for               % il,in,ky,mi,oh,pa,tn,wv% data covers 1982,1 to 1996,5vnames =  ['  il',           '  in',               '  ky',               '  mi',               '  oh',               '  pa',               '  tn',               '  wv'];         y = test;[nobs neqs] = size(y);nlag = 9;  % number of lags in var-model% estimate the model% let routine determine # of co-integrating vectorsresult = ecm(y,nlag);% print results to a filefid = fopen('ecm.out','wr');prt_var(result,vnames,fid);fclose(fid);disp('Output is in file ecm.out in current directory');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -