大家好:
小弟初来咋到,今天把这个版上帖子整整90浏览完了,胸闷。。。但是问题还是解决不了。故特来请教大家。
一、我用的程序里有这么一段,是var。但是vector_autoregressive_model和akaike_information_criteria;会报错。这两个不像是matlab自身的函数,不知道是只在哪个特别的工具箱里有,还是作者自己写的函数然后放到工具箱里去。当前m文件里没有,其他m文件没有名字叫这两个的。我试着用vare和aic去自己编m文件,没有成功。请哪位大哥支援下
% a) Select optimal lag length
akaike_information_criteria;
akaike_info_for_var=AIC_for_y;
select_optimum_lag_length;
% b) Estimate the VAR
results_of_var=vector_autoregressive_model(y,optimum_lag_length);
% c) Construct the forecast
aa=[results_of_var(1).beta(1:end-1,1)'];
dates=dates(7:end,1);还有dates也是用不了,不知道是不是版本问题,还是工具箱安装不全。我的是7.0。
aic的网址
http://www.mathworks.ch/access/helpdesk/help/toolbox/ident/ref/aic.html
vare的网址
http://www.rri.wvu.edu/WebBook/LeSage/etoolbox/var_bvar/var.m
datestr的网址
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datestr.html