I've got something that might be a clue to understand the strange behaviour of lda in R --gui="gnome": in R --vanilla: library(MASS) load("mod23puriflda.rda")> a <- lda.default(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F)works fine. I save lda.default as a local rda file:> milda.nognome <- lda.default > save(milda.nognome,file="milda.nognome.rda")Then in R --vanilla --gui="gnome" library(MASS) load("mod23puriflda.rda")> a<-lda.default(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F,method="moment") Error in lda.default(x = mod23puriflda[, 2:5], grouping = mod23puriflda[, : length of dimnames[2] not equal to array extent In addition: Warning message: variables are collinear in: lda.default(x = mod23puriflda[, 2:5], grouping = mod23puriflda[, Does not work, BUT:> load("milda.nognome.rda") > a <-milda.nognome(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F,method="moment") WORKS!! and, still in R --vanilla --gui="gnome", I save lda.default to another rda file:> milda.gnome <- lda.default > save(milda.gnome,file="milda.gnome.rda")Then back to R --vanilla> load("milda.gnome.rda") > a <- milda.gnome(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F)Error in milda.gnome(x = mod23puriflda[, 2:5], grouping = mod23puriflda[, : length of dimnames[2] not equal to array extent In addition: Warning message: variables are collinear in: milda.gnome(x = mod23puriflda[, 2:5], grouping = mod23puriflda[, Does not work !! Therefore, gnome is really changing something, but what? Agus Dr. Agustin Lobo Instituto de Ciencias de la Tierra (CSIC) Lluis Sole Sabaris s/n 08028 Barcelona SPAIN tel 34 93409 5410 fax 34 93411 0012 alobo at ija.csic.es -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Perhaps you are loading different versions of the MASS library, depending on which interface you are using. .path.package() will tell you. Martyn On 22-Feb-2002 Agustin Lobo wrote:> I've got something that might be a clue to understand > the strange behaviour of lda in R --gui="gnome": > > in R --vanilla: > > library(MASS) > load("mod23puriflda.rda") > >> a <- lda.default(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F) > works fine. I save lda.default as a local rda file: > >> milda.nognome <- lda.default >> save(milda.nognome,file="milda.nognome.rda") > > Then in R --vanilla --gui="gnome" > > library(MASS) > load("mod23puriflda.rda") > >> a > <-lda.default(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F,method="mo > ment") > Error in lda.default(x = mod23puriflda[, 2:5], grouping = mod23puriflda[, >: > length of dimnames[2] not equal to array extent > In addition: Warning message: > variables are collinear in: lda.default(x = mod23puriflda[, 2:5], grouping > = mod23puriflda[, > > Does not work, BUT: > >> load("milda.nognome.rda") >> a <- > milda.nognome(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F,method="mo > ment") > > WORKS!! > > and, still in R --vanilla --gui="gnome", I save lda.default to another > rda file: > >> milda.gnome <- lda.default >> save(milda.gnome,file="milda.gnome.rda") > > Then back to R --vanilla > >> load("milda.gnome.rda") >> a <- milda.gnome(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F) > Error in milda.gnome(x = mod23puriflda[, 2:5], grouping = mod23puriflda[, >: > length of dimnames[2] not equal to array extent > In addition: Warning message: > variables are collinear in: milda.gnome(x = mod23puriflda[, 2:5], grouping > = mod23puriflda[, > > Does not work !! > > Therefore, gnome is really changing something, but what? > > Agus-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
sun@cae.wisc.edu
2002-Feb-22 15:48 UTC
[R] Does R have semiparametric package for time series
Hello, All: I am new to R. I wonder if there is package for nonparametric or semiparametric processing of time series. Thank you very much. Hongyu Sun -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._