[R] Error in Quantile Regression - Clear Message

From: <ricardosilva_at_serasa.com.br>
Date: Sat 15 Jul 2006 - 02:43:32 EST


Dear Users,
I loaded my dataset as following:

presu <- read.table("C:/_Ricardo/Paty/qtdata_f.txt", header=TRUE, sep="\t", na.strings="NA", dec=".", strip.white=TRUE) dep<-presu[,3];
exo<-presu[,4:92];

When I try:

rq(dep ~ exo, ...) or mle.stepwise(dep ~ exo, ...) I got the same error:
> rq(dep ~ exo)

Error in model.frame(formula, rownames, variables, varnames, extras, extranames, :

        invalid variable type for 'exo'

Any hint in how to fix it? I think this is due my data format.

Thanks,



Ricardo Gonçalves Silva, M. Sc.
Apoio aos Processos de Modelagem Matemática Econometria & Inadimplência
Serasa S.A.
(11) - 6847-8889
ricardosilva@serasa.com.br

Hi,

I load my data set and separate it as folowing:

presu <- read.table("C:/_Ricardo/Paty/qtdata_f.txt", header=TRUE, sep="\t", na.strings="NA", dec=".", strip.white=TRUE) dep<-presu[,3];
exo<-presu[,4:92];

Now, I want to use it using the wls and quantreg packages. How I change the data classes for mle and rq objects?

Thanks a lot,
Ricardo



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help  PLEASE do read the posting guide!
 http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 15 02:46:46 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 16 Jul 2006 - 02:13:27 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.