LinearModel.stepwise Matlab R2011a
Mostra commenti meno recenti
Hi there
I am trying to perform a stepwise regression. The code i tired is the following :
mdl = LinearModel.stepwise(X,y,modelspec,'VarNames', {labx1,labx2,labx3,labx4,laby});
and i got te following error message :
??? Undefined variable "LinearModel" or class
"LinearModel.stepwise".
it is weird because i used the exact same code as the one described here :
I am afraid this is because i have an older release of Matlab. I use R2011a with Statistics Toolbox 7.5. I have been trying to read the "documentation for older releases" but the website would accept neither my License number nor my activation key so i can't access the documentation. This is a student license.
What can I do ? Thank you very much Laurie
Risposta accettata
Più risposte (1)
laurie
il 4 Apr 2012
0 voti
2 Commenti
the cyclist
il 4 Apr 2012
I would check "doc stepwisefit" to be 100% certain, but I'm pretty sure you have to add interactions terms separately.
For future reference, your "answer" here would have been better placed as a comment on my answer. Also, please consider accepting my answer, which might help future users with a similar question.
laurie
il 4 Apr 2012
Categorie
Scopri di più su Linear Predictive Coding in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!