[R] help with rq

Uwe Ligges ligges at statistik.uni-dortmund.de
Sun Sep 23 17:46:41 CEST 2007



Vivian wrote:
> I used in 2004 an earlier version of R (1.6.0 ?) for quantile regressions
> 
>  
> 
> Now I downloaded version 2.5.1-win32 and I cannot A) read my old files (Our
> exel working space was saved in csv) and also the series of instructions
> does not work, see below (B) rq function is not recognized)


A) You can, but we do not know how your file looks like and hence cannot 
help without more information.
B) It works, if you have package quantreg installed and loaded.

Uwe Ligges


>  
> 
> filename <- read.csv("filename.csv",header=TRUE,row.names=1)
> 
> fit95 <-rq(y~a+b,data=filename,tau=.95)
> 
>  
> 
>  
> 
> Thanks in advance
> 
>  
> 
>  
> 
> Vivian Montecino
> 
> Dpto. Ciencias Ecológicas
> 
> Facultad de Ciencias
> 
> U de Chile
> 
> Casilla 653, Las Palmeras 3425
> 
> Santiago, Chile
> 
> tel  56-2-9787405
> 
> fax 56-2-2727363
> 
>  
> 
> 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list