Linear Model final formula

2 ビュー (過去 30 日間)
Ram Tal
Ram Tal 2014 年 6 月 25 日
編集済み: Roger Wohlwend 2014 年 6 月 25 日
Hi all,
I run the fitlm function and got the following results-
mdl =
Linear regression model: y ~ 1 + x1
Estimated Coefficients:
Estimate SE tStat pValue
(Intercept) 13.02 1.7945 7.2555 5.2096e-11
x1 -0.023421 0.016472 -1.4219 0.15779
How from here do I implement the formula y = β0 + ∑ βiXi + εi
THANKS!

回答 (1 件)

Roger Wohlwend
Roger Wohlwend 2014 年 6 月 25 日
In your example above x1 was a column vector. All you have to do is call the function with a matrix x that contains all the x variables.
  2 件のコメント
Ram Tal
Ram Tal 2014 年 6 月 25 日
yeah, I got it, but what I wanted to know is how the model look like.
for example-
Y= -0.023421*X1+13.02 . I think this is how it should be according to the results, but i'm not 100% sure.
thanks.
Roger Wohlwend
Roger Wohlwend 2014 年 6 月 25 日
編集済み: Roger Wohlwend 2014 年 6 月 25 日
I'm sorry but I don't understand at all what your question is. Could you please elaborate?

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

カテゴリ

Help Center および File ExchangeLinear Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by