Plotting quantile regression coefficients

Dear all, I want to do the quantile regression. I am using quantreg package. I have three independent variable x1, x2, and x3. After estimating quantile coefficients, i want to plot only intercept and coefficient of x1. Here is the code i am using.


fit1=rq(y~x1+x2+x3, tau=seq(0.02, 0.98, by=0.02))
plot(summary(QR))


but facing problems. Kindly suggest me in this regard. Thank you

Hi @Mous! Welcome!

I think you’ll need to provide some more information in order for helpers to be able to understand your problem.

The best thing would be if you can make your question into a reproducible example (follow the link for instructions and explanations).

It would also be very helpful if you could describe what problem you’re having in more detail. Is there a specific error message you are getting?

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.