glmfit stats error
이전 댓글 표시
I have been using glmfit to perform a logistic regression. It was working for several days, but now something has changed and when I request stats back from the fit it returns an error. What am I doing wrong in the following example:
x = [2100 2300 2500 2700 2900 3100 3300 3500 3700 3900 4100 4300]';
y = [1 0 0 1 1 0 0 0 0 1 0 1]';
This line works:
[b,dev] = glmfit(x,y,'binomial','link','logit');
This line fails:
[B,dev,stats]=glmfit(x,y,'binomial','link','logit');
??? Error using ==> beta
Too many input arguments.
Error in ==> glmfit at 377
anscresid = beta(t,t) * ...
I am sure it is a simple issue but I really don't know what I changed or what is going wrong to cause this issue. Any guidance would be very helpful. Thanks
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Student's t Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!