Michael Faye
2008-Sep-23 18:23 UTC
[R] quantile regression: plotting coefficients on only one variable (rq)
Dear all. I have a question on plotting the coefficients from a series of mutivariate quantile regressions. The following code plots the coefficients for each RHS variable x1 and x2. Is there a way to plot only the coefficients on x1? In the data I am using, I have a large number of fixed effects and do want to plot the coefficients on these fixed effects. quant.plot <- summary(rq(paste("y ~ x1 + x2"), tau=1:9/10)) postscript(file=paste(output.dir, "plot.eps", sep="/"), paper="special", width=10, height=10, horizontal=FALSE) plot(quant.plot) Best Michael [[alternative HTML version deleted]]
Mark Difford
2008-Sep-23 19:12 UTC
[R] quantile regression: plotting coefficients on only one variable (rq)
Hi Michael, It's in the manual: ?plot.summary.rqs plot(summary(rq(..., tau=c(...)), parm = x1, ...) Regards, Mark. Michael Faye wrote:> > Dear all. > > I have a question on plotting the coefficients from a series of > mutivariate > quantile regressions. The following code plots the coefficients for each > RHS variable x1 and x2. Is there a way to plot only the coefficients on > x1? > In the data I am using, I have a large number of fixed effects and do want > to plot the coefficients on these fixed effects. > > > quant.plot <- summary(rq(paste("y ~ x1 + x2"), tau=1:9/10)) > postscript(file=paste(output.dir, "plot.eps", sep="/"), > paper="special", > width=10, > height=10, > horizontal=FALSE) > > plot(quant.plot) > > Best > Michael > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- View this message in context: http://www.nabble.com/quantile-regression%3A-plotting-coefficients-on-only-one-variable-%28rq%29-tp19633899p19634794.html Sent from the R help mailing list archive at Nabble.com.
Reasonably Related Threads
- Quantile regression: Discrepencies Between optimizer and rq()
- applying quantile to a list using values of another object as probs
- Problem to male an Index in looping
- problems with generation of quantiles under For ()
- Is there a "latex" summary function in the quantreg package for just 1 tau?