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