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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Maria445
Maria445 il 17 Ott 2017
Ok I solved it using fmincon

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by