From: Rick on
Hi,

I'm searching for how I can easily test if two regression coefficients are the same. I can't seem to find any data on how to do this easily and can only find information pertaining to how to do it in stats.

I.e. y = alpha1 + alpha2*x1 + alpha3*x2 + alpha4+x3 + e

I want to test if alpha2 == alpha3

Thanks
From: Peter Perkins on
On 5/6/2010 12:15 AM, Rick wrote:

> I.e. y = alpha1 + alpha2*x1 + alpha3*x2 + alpha4+x3 + e
>
> I want to test if alpha2 == alpha3

The standard thing would be to fit the equivalent model

y = alpha1 + alpha2*(x1+x2) + alpha3*x2 + alpha4+x3 + e

and then test if alpha3 is significantly different from zero. You could
use a t test on the coef (e.g., REGSTATS if you have access to the
Statistics Toolbox), or F test against the simpler model

y = alpha1 + alpha2*(x1+x2) + alpha4+x3 + e

The two tests are equivalent. Hope this helps.