[R] Add a function in rq

mael henriksson.anna at live.se
Tue Sep 20 10:50:40 CEST 2011


Hi,

I am trying to add a function in a linear quantile regresion to find a
breakpoint. The function I want to add is:

y=(k+ax)(x<B)+(k+(a-d)B+dx)(x>B) 

How do I write it in the rq() function? Do I need to define the parameters
in any way and how do I do that? I'm a biologist new to R.

Thanks!


--
View this message in context: http://r.789695.n4.nabble.com/Add-a-function-in-rq-tp3826192p3826192.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list