Constraints on Parameter Estimation
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to fit linear regression model and predict parameters without intercept. I have written my code as under;
tbl=table(yobs,x1,x2,x3);
mdl = fitlm(tbl,'yobs ~ x1 + x2 + x3 - 1')
but I am getting the estimates which are negative but in my model all parameters should be positive. LB>=0 and UB=inf. How to set these constraints while doing the prediction.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!