adf_d.m
来自「计量工具箱」· M 代码 · 共 22 行
M
22 行
% PURPOSE: demonstrate the use of adf()
% function to test for unit roots in
% a levels series
% ---------------------------------------------
% usage: adf_d
% ----------------------------------------------
clear all;
nobs = 100;
dx = randn(nobs,1);
y = cumsum(dx);
e = randn(nobs,1);
nlags = 6;
for i=1:nlags;
res = adf(y,0,i);
prt(res);
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?