Re: [R] Error in Quantile Regression - Clear Message

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Sun 16 Jul 2006 - 00:02:44 EST

ricardosilva@serasa.com.br wrote:
> 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.

Maybe, but you will have to tell us the class() and mode() of "exo", some output of the str() function would be fine.

Uwe Ligges

> 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



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 Sun Jul 16 00:07:30 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:31 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.