I seem to be getting quite different results when I use regress vs fitlm to do multivariate regression. Why?
2 ビュー (過去 30 日間)
古いコメントを表示
I am looking for a function suggestion for the best suited for this functionality
2 件のコメント
回答 (1 件)
Star Strider
2016 年 4 月 5 日
‘The Coef_regress_ones matches with fitlm output, but with a large intercept value. But I already removed the mean value. I don't understand why.’
We still don’t have your data.
Removing the mean would not remove a trend (linearly-increasing baseline).
2 件のコメント
Star Strider
2016 年 4 月 6 日
My pleasure.
Removing the mean does not necessarily mean that your signal does not have some sort of linear baseline trend.
Adding the ones vector allows the intercept to be estimated uniquely rather than being forced through zero. If you do not specify a ones column, the model forces a zero intercept.
参考
カテゴリ
Help Center および File Exchange で Digital Filter Analysis についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!