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 Comments

Can you not just follow one of the examples you cite but restrict the beta to be in a very tiny range?
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.

Sign in to comment.

Answers (1)

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 Comments

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.

Sign in to comment.

Asked:

on 27 Jul 2015

Commented:

on 29 Jul 2015

Community Treasure Hunt

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

Start Hunting!