フィルターのクリア

fitlm - change the output of this function

3 ビュー (過去 30 日間)
Tania
Tania 2014 年 7 月 9 日
コメント済み: Shashank Prasanna 2014 年 7 月 9 日
Hey!
When I use fitlm I always get the following measurement criteria displayed: Number of observations: Error degrees of freedom: Root Mean Squared Error: R-squared: Adjusted R-Squared F-statistic vs. constant model: p-value
Is it possible to specify which ones I want to see and also is it possible to add the MSE and MAE? If so, how could I do it? Thank you 

採用された回答

Shashank Prasanna
Shashank Prasanna 2014 年 7 月 9 日
編集済み: Shashank Prasanna 2014 年 7 月 9 日
Tania, you get everything by default. If you want to be specific you may have to suppress the commandline output (using semicolon, ; ) and then displaying it yourself using sprintf or disp:
Access properties like so:
mdl = fitlm(X,y);
mdl.Rsquared
  2 件のコメント
Tania
Tania 2014 年 7 月 9 日
編集済み: Tania 2014 年 7 月 9 日
Thanks for this answer as well. Great and easy idea just to suppress the commanddline output. I don’t really understand sprintfl or disp. Does this just explain in formal how to write the second line of your command (mdl.Rsquared)? Thanks Shashank!
Shashank Prasanna
Shashank Prasanna 2014 年 7 月 9 日
Take a look at the examples in the link I showed you and give it a try. After that if you have a specific questions, we may be able to help you better.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by