Hi folks,
I am pretty new to quantile regression. So, I want to learn it by comparing it with the OLS regression. Basically, for the LHS variable, if the mean equals the median, should the quantile regression at the median generate the same coefficients as the OLS regression? To test this, I need to generate a LHS variable with the same mean and median. Is there such a code like this? Say gen y=rnormal(0,1), median==0? Thank you very much for your help!
Ruyi.
I am pretty new to quantile regression. So, I want to learn it by comparing it with the OLS regression. Basically, for the LHS variable, if the mean equals the median, should the quantile regression at the median generate the same coefficients as the OLS regression? To test this, I need to generate a LHS variable with the same mean and median. Is there such a code like this? Say gen y=rnormal(0,1), median==0? Thank you very much for your help!
Ruyi.
Comment