Multiple linear regression with constraint
3 ビュー (過去 30 日間)
古いコメントを表示
I need to run a multiple linear regression such that all of the coefficients are positive, and their sum = 1 . I have 7 variables, so i need 7 seven coefficients.
Thanks !
0 件のコメント
採用された回答
Amit
2014 年 2 月 8 日
6 件のコメント
John D'Errico
2014 年 2 月 8 日
編集済み: John D'Errico
2014 年 2 月 8 日
Note that most likely, some of the coefficients MIGHT go negative by an amount on the order of eps. Look at the numbers. If they are -1.e-13, why do you care? Just set them to ZERO afterwards.
その他の回答 (0 件)
参考
カテゴリ
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!