本人使用Zhuanxin Ding的 Regime Switching Model with Time Varying Transition Probabilities程序包做 MS_Regress估计,使用Example_MS_Regress_Fit_tvtp程序时出现如下错误:Calculating Standard Error Vector...??? Error using ==> stdnormal_cdf at 36
stdnormal_cdf: x must not be empty
Error in ==> normcdf at 54
cdf = stdnormal_cdf ((x - m) ./ s);
Error in ==> tcdf at 70
p(normal) = normcdf(x(normal));
Error in ==> MS_Regress_Fit_tvtp at 105
param_pvalues=2*(1-tcdf(abs(param./param_std),nr-numel(param)));
Error in ==> Example_MS_Regress_Fit_tvtp at 37
[Spec_Out]=MS_Regress_Fit_tvtp(dep,indep,px,k,S,advOpt); % Estimating the model
我简单察看了一下,貌似是在估计累积分布函数(CDF)时,function cdf = stdnormal_cdf (x)报错,不知道应该怎么改,谢谢大家!!