Multiple regression with betas constrained to be equal

I would like to fit a multiple regression with beta constrained to be the same across variables.
Y = alpha + b1*X1 + b2*X2 +...+ b10*X10 where b1-b10 are equal, alpha unconstrained.
I have seen a number of examples where constraints are to keep beta in a certain range, but does not seem to be appropriate here.

2 Kommentare

Jon
Jon am 27 Jul. 2015
Can you not just follow one of the examples you cite but restrict the beta to be in a very tiny range?
John D'Errico
John D'Errico am 28 Jul. 2015
Bearbeitet: John D'Errico am 28 Jul. 2015
Actually, trying to fix a variable by setting the bounds to a VERY narrow range tends to produce nastiness in the solution. It can cause problems. Anyway, this would not solve the problem as apparently asked, because the question was not to fix the b_i to a given value, but to make them all the same, while still estimating them.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

John D'Errico
John D'Errico am 28 Jul. 2015
Bearbeitet: John D'Errico am 28 Jul. 2015
So you REALLY want to fit the model...
Y = alpha + b1*(X1 + X2 +...+ X10)
Hint. Hint. Hint. Does this look like a simple, linear regression in ONE variable? Could polyfit solve your problem?

2 Kommentare

Now I feel dumb. This does look like the solution to the question I posed. Now I just need to work out if the question was the right one for my data. Thanks John.
:) Sometimes we just have a mental block, and need to view a problem from a different perspective.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 27 Jul. 2015

Kommentiert:

am 29 Jul. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by