Hello,
I'm currently conducting an analysis to assess the presence of a structural change in the data. To do this, I have conducted two separate regression analyses: one for the period before the structural break and another for the period after the break. My specific objective is to determine if the coefficient for the "income" variable is the same across these two time periods.
I have included the code I've been using for your reference. If possible, could you please assist me in refining this code to accurately test the equality of the "income" coefficient between the two periods? Your guidance and support are highly appreciated.
I got the following error message:
Then I tried the following:
I got the following error message:
Thank you in advance.
I'm currently conducting an analysis to assess the presence of a structural change in the data. To do this, I have conducted two separate regression analyses: one for the period before the structural break and another for the period after the break. My specific objective is to determine if the coefficient for the "income" variable is the same across these two time periods.
I have included the code I've been using for your reference. If possible, could you please assist me in refining this code to accurately test the equality of the "income" coefficient between the two periods? Your guidance and support are highly appreciated.
Code:
regress savings income if break == 0 scalar b1_p0 = _b[income] regress savings income if break == 1 scalar b1_p1 = _b[income] test b1_p0 = b1_p1
Code:
command test b1_p0 is unrecognized r(199);
Code:
regress savings income if break == 0 estimates store reg0 regress savings income if break == 1 estimates store reg1 test [reg0]income = [reg1]income
I got the following error message:
Code:
equation [reg0] not found r(303);
Comment