I am using quantreg
package in R for running quantile regression (95%) on a set of data.
I would like to set the slope of of the quantile regression to the value 1.4, as alreday did in a previous analysis with which I want to compare my outcomes. If in lm()
this is possible with the function offset()
, using rq()
for a fixed quantiles (e.g. 0.025) this does not work.
The code doesn't give error, but the value of 1.4 doesn't have an effect on my results.
fit.0.025<-rq(y~offset(1.4*x),tau=0.025, data=mydataframe)