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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by