data(stackloss)
rq(stack.x, stack.loss, .5) #the l1 estimate for the stackloss data
rq(stack.x, stack.loss, tau=.5, ci=T, method="score") #same as above with
#regression rank score inversion confidence interval
rq(stack.x, stack.loss, .25) #the 1st quartile,
#note that 8 of the 21 points lie exactly
#on this plane in 4-space
rq(stack.x, stack.loss, -1) #this gives all of the rq solutions
rq(y=rnorm(10), method="sparsity") #ordinary sample quantiles
data(Patacamaya) # an example with formula
z0.1 <- rq.formula(y ~ a+tipo, data=Patacamaya, na.action=na.omit, tau=0.1)
z0.1$coef
z0.1$ci
Run the code above in your browser using DataLab