[R] quantile regression: plotting coefficients on only one variable (rq)
Mark Difford
mark_difford at yahoo.co.uk
Tue Sep 23 21:12:28 CEST 2008
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.
More information about the R-help
mailing list