[R] How to keep a coefficient fixed when using rq {quantreg}?

Roger Koenker rkoenker at illinois.edu
Sat Oct 15 03:40:51 CEST 2011


Ah yes offsets, I've meant to look into this, but never quite understood
why something like:

	rq((y - xk - bk) ~ x1 + x2)

wasn't just as convenient....


Roger Koenker
rkoenker at illinois.edu




On Oct 14, 2011, at 6:55 PM, Tal Galili wrote:

> Hello all,
>
> I would like to compute a quantile regression using rq (from the
> quantreg package), while keeping one of the coefficients fixed.
> Is it possible to set an offset for rq in quantreg?  (I wasn't able to
> make it to work)
>
> Thanks,
> Tal
>
>
>
> ----------------Contact
> Details:-------------------------------------------------------
> Contact me: Tal.Galili at gmail.com |  972-52-7275845
> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew)
> | www.r-statistics.com (English)
>
> ______________________________________________
> 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.



More information about the R-help mailing list