Hello, I have 2 questions on testing whether the coefficients across OLS and quantile regressions are equal. Below are the models and codes I used.
The model I use is simultaneous quantile regressions like this: Y = X1 + X2 + X3 + control (1)
And the code I use is: sqreg Y X1 X2 X3 control, q(.25 .5 .75)
I used test [q25=q50=q75]: X1 to test whether the coefficients are equal across quantiles.
I was asked to cluster by permno, so I also test the model at p25 p50 p75 separately
And the code I use is:
qreg2 Y X1 X2 X3 control, q(.25) cluster(permno) (2)
qreg2 Y X1 X2 X3 control, q(.5) cluster(permno) (2)
qreg2 Y X1 X2 X3 control, q(.75) cluster(permno) (2)
Now comes my 2 question:
(1) I try to test whether the coefficients on X1 (also for X2 and X3) are equal between OLS and model 1 quantiles q25 q50 q75
To do this, I tried to store OLS regression as ols, use suest, and then test [q25]X1=[q50]X1=[q75]X1=[ols]X1, but it gave me an error message.
(2) I tried to test whether the coefficients on X1 are equal or not across the quantiles in regression 2
again suest does not allow me to do the job.
Could you please help me on this? Your inputs are greatly appreciated!
The model I use is simultaneous quantile regressions like this: Y = X1 + X2 + X3 + control (1)
And the code I use is: sqreg Y X1 X2 X3 control, q(.25 .5 .75)
I used test [q25=q50=q75]: X1 to test whether the coefficients are equal across quantiles.
I was asked to cluster by permno, so I also test the model at p25 p50 p75 separately
And the code I use is:
qreg2 Y X1 X2 X3 control, q(.25) cluster(permno) (2)
qreg2 Y X1 X2 X3 control, q(.5) cluster(permno) (2)
qreg2 Y X1 X2 X3 control, q(.75) cluster(permno) (2)
Now comes my 2 question:
(1) I try to test whether the coefficients on X1 (also for X2 and X3) are equal between OLS and model 1 quantiles q25 q50 q75
To do this, I tried to store OLS regression as ols, use suest, and then test [q25]X1=[q50]X1=[q75]X1=[ols]X1, but it gave me an error message.
(2) I tried to test whether the coefficients on X1 are equal or not across the quantiles in regression 2
again suest does not allow me to do the job.
Could you please help me on this? Your inputs are greatly appreciated!
Comment