Linear Model final formula
조회 수: 5 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (1개)
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
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 Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!