|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
<P>n = 24;<BR>y = zeros(n,1);<BR>y(1:12,1) = ones(12,1);</P>
<P>xa = [1 1 1 1 1 1 1 1 1 1 1 1 ...<BR> 0 0 0 0 0 0 0 0 0 0 0 0 ];<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 [0,1].</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> |
|