ricardosilva at serasa.com.br
2006-Jul-14 16:43 UTC
[R] Error in Quantile Regression - Clear Message
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 at 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 at 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
ricardosilva at 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 at 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 at 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 at 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