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

📄 johansen_d.m

📁 计量工具箱
💻 M
字号:
% PURPOSE: demonstrate the use of johansen()
%          function to test for cointegration
%          among I(1) time-series
% ---------------------------------------------
% usage: johansen_d
% ----------------------------------------------

clear all;

vnames  = ['  illinos      ',
           '  indiana      ',    
           '  kentucky     ',    
           '  michigan     ',    
           '  ohio         ',    
           '  pennsyvlania ',    
           '  tennesse     ',    
           '  west virginia'];    

load test.dat;
% a sample of monthly employment for 8 states
% in mining from 1982,1 to 1996,5

y = test; % use all eight states
nlag = 9;
cterm = 0;
result = johansen(y,cterm,nlag);

% print results with variable names
prt_coint(result,vnames);

% print results with generic names
%prt(result);

⌨️ 快捷键说明

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