Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
alpedhuez
alpedhuez am 1 Dez. 2020
Kommentiert: alpedhuez am 4 Dez. 2020
I checked
but it does not seem to say how one can get t-stat as an output. Please advise.

Akzeptierte Antwort

Rik
Rik am 1 Dez. 2020
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 Kommentare
Rik
Rik am 2 Dez. 2020
As the documentation page you link explains: mdl.Coefficients is a table.
alpedhuez
alpedhuez am 4 Dez. 2020
Thank you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by