Is it possible to obtain the script file for the fitlm function?
古いコメントを表示
I need the script file for the fitlm, using the polyijk attribute, so that I can create my own modified function. Is that possible or should I necessarily use the one given by the Matlab statistics toolbox.
採用された回答
その他の回答 (1 件)
Shashank Prasanna
2014 年 3 月 20 日
編集済み: Shashank Prasanna
2014 年 3 月 20 日
It is not entirely clear what you are requesting but if you have fit a linear model using fitlm as follows:
mdl = fitlm(...)
You can access the model function this way:
mdl.Formula.ModelFun
If you want to use an custom polynomial function you can type it out:
y ~ 1 + x1^2 ... so on
If you want to use an arbitrary function i recommend fitnlm :
2 件のコメント
Gautam
2014 年 3 月 20 日
Shashank Prasanna
2014 年 3 月 20 日
Can you elaborate? its not very clear what you are asking for. What do you mean by code for the function? If it is code for fitlm, then see what Sean posted. If not please explain.
カテゴリ
ヘルプ センター および File Exchange で Support Vector Machine Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!