xuelida 发表于 2014-2-27 17:03 
olsqr.src 对于你的程序出问题了
我的程序编码为
proc(1) = IC(x,reg,kmax,criteria);
local ICV, dep, rego, khat, b, e, fit, i;
ICV = zeros(kmax+1,1);
dep = trimr(x,kmax,0);
rego = trimr(reg,kmax,0);
e=dep-rego*inv(rego'rego)*rego'*dep;
ICV[1] = ln(e'e/rows(e)); /* in the case of k=0.*/
可是下面提示说最后一行存在错误error G0047 : Rows don't match