请帮我看看是这是个什么错误
<P>n = 24;<BR>y = zeros(n,1);<BR>y(1:12,1) = ones(12,1);</P><P>xa = ;<BR> <BR>x = xa'; </P>
<P>vnames=['days ',<BR> 'response'];</P>
<P>reso = ols(y,x);<BR>prt_reg(reso,vnames);</P>
<P>res = logit(y,x);<BR>prt_reg(res,vnames);<BR><BR>-------------------------------<BR>***************************************************************<BR>??? Error using ==> betainc<BR>X must be in the interval .</P>
<P>Error in ==> F:\MATLAB6p5\toolbox\jplv6\distrib\tdis_prb.m<BR>On line 35==> tmp = 1.0 - 0.5*betainc(x2,0.5*n,0.5);</P>
<P>Error in ==> F:\MATLAB6p5\toolbox\jplv6\regress\prt_reg.m<BR>On line 364==> tout = tdis_prb(results.tstat,nobs-nvar); % find t-stat probabilities</P>
<P>Error in ==> f:\MATLAB6p5\work\logit_1_d.m<BR>On line 25==> prt_reg(res,vnames);</P>
<P>>> </P>
回复:(calmwater)请帮我看看是这是个什么错误
ols是什么函数?是不是你自己加的工具箱<BR><BR>matlab里没有 en.谢谢happy.原来是不能全为一的缘故
页:
[1]