Skip to content
Prev 59 / 7420 Next

segmented quantile regression and rqss

Not sure if this is what you are looking for, but just try something like:

m = nlrq(y~g0+g1*x*(x<=bp) + (g1 * bp + b1 * (x-bp))*(x>bp),
data=data, tau=.9,start=list(g0=1,g1=10,b1=-1,bp=5))

where 'bp' is the breakpoint between the two segments.  Obviously -
your starting values would change to fit your needs.

HTH

Stephen

--
Stephen B. Cox
Dept. Env. Tox
TTU
On Fri, May 2, 2008 at 8:38 AM, <Griffith.Michael at epamail.epa.gov> wrote: