How can one get t-stat of fitlm as an output?

2 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2020 年 12 月 1 日
コメント済み: alpedhuez 2020 年 12 月 4 日
I checked
but it does not seem to say how one can get t-stat as an output. Please advise.

採用された回答

Rik
Rik 2020 年 12 月 1 日
It is in the top example:
load carsmall
X = [Weight,Horsepower,Acceleration];
mdl = fitlm(X,MPG);
mdl.Coefficients.tStat
ans = 4×1
12.3699 -5.8023 -1.7663 -0.0599
  3 件のコメント
Rik
Rik 2020 年 12 月 2 日
As the documentation page you link explains: mdl.Coefficients is a table.
alpedhuez
alpedhuez 2020 年 12 月 4 日
Thank you.

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by