Force the intercept of a regression to be a combination of the coefficients

1 回表示 (過去 30 日間)
Maria445
Maria445 2017 年 10 月 17 日
回答済み: Maria445 2017 年 10 月 17 日
I'd like to run a linear regression of the form y = a + b*x1 + c*x2, where the intercept a is equal to b+c.
How can I set this condition in fitlm using the Wilkinson notation?

採用された回答

Maria445
Maria445 2017 年 10 月 17 日
Ok I solved it using fmincon

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by