[R] Quantreg-rq crashing trouble

Steven R Corsi srcorsi at usgs.gov
Fri Jul 22 00:02:07 CEST 2011


Hi

I am using the quantreg package for median regression for a large series 
of subsets of data. It works fabulously for all but one subset. When it 
reaches this subset, R takes the command and never responds. I end up 
having to kill R and restart it.

It appears to be something with the particular data subset, but I can't 
pinpoint the problem.

Here are some details
Operating system: Windows 7
R version: 2.12.1

Here is the data and the rq command that gives me trouble:

library(quantreg)

x <- 
c(-0.340778085786686,-0.573639751645382,-0.663932762810308,-0.438591328531796,0.302202380883637,-0.675558868120683,-0.764547425063882,-0.751796238115147,-0.481835451050657,-0.588287304540034,-0.622315341312595,-0.542777491991884,-0.552343921339062,-0.587743299883,-0.758233854317935,-0.783134744819092,-0.97774093234124,0.859832969267456,0.69037126308323,0.185409334523753,-0.432951955490942,-0.988120972598647,0.243223425575187)

y<-

c(2.35531739878456,-1,2.26484142532915,-1,2.86895579641295,2.6655997506336,-1,1.33021078457153,-1,-1,-1,1.82633400562222,1.60831204269733,-1,2.45313479655685,-1,-1,-1,-1,-1,-1,-1,-1)


fit1 <- rq(y ~ x, tau = .5)


Any feedback would be greatly appreciated.
Thanks
Steve

-- 
===============================================
Steven R. Corsi        Phone: (608) 821-3835
Research Hydrologist   email: srcorsi at usgs.gov
U.S. Geological Survey
Wisconsin Water Science Center
8505 Research Way
Middleton, WI 53562



More information about the R-help mailing list