When I use stepwisefit I can define 'penter' and 'premove' typing stepwisefit(X,y,'penter',.02,'premove',.10)
However, when I am using stepwise if I type stepwise(X,y,'penter',.02,'premove',.10) I get the error:
??? Error using ==> stepwise Too many input arguments.

 채택된 답변

David Young
David Young 2011년 11월 17일

0 개 추천

The specification for stepwise is
stepwise(X,y,inmodel,penter,premove)
so you don't need the strings 'penter' and 'premove'. You just give the parameter values as the fourth and fifth arguments. However, if you want to specify penter and premove, you do need to give a value for the initial model.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Financial Toolbox에 대해 자세히 알아보기

태그

질문:

2011년 11월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by