Hello, I have a problem... I tried using a function and I get the error: "ERROR: missing value where TRUE/FALSE needed" Here is my code: a<-mctp(Ecoli~Fecha, data=Datos, type = "Tukey", alternative = "two.sided", asy.method = "mult.t", plot.simci = TRUE)summary(a) Ecoli, Fecha and Datos are well defined. I don't know what is the problem... THANKS [[alternative HTML version deleted]]
Hi What is mctp? Why do you think your data are well defined? Did you try str(Datos)? Where you get this error? When you do call mctp or summary? The main problem is that you do not follow posting guide, do not provide reproducible code and/or at least some info about your data. Without that I wonder if anybody can resolve your problem. Regards Petr> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Lee Jejen > Sent: Tuesday, July 16, 2013 11:29 PM > To: r-help at r-project.org > Subject: [R] ERROR: missing value where TRUE/FALSE needed > > Hello, I have a problem... I tried using a function and I get the > error: "ERROR: missing value where TRUE/FALSE needed" > Here is my code: > a<-mctp(Ecoli~Fecha, data=Datos, type = "Tukey", alternative > "two.sided", asy.method = "mult.t", plot.simci = TRUE)summary(a) Ecoli, > Fecha and Datos are well defined. I don't know what is the problem... > THANKS > > [[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.
In addition to what Petr said, That message most likely means that you have some missing data where you're not allowed to have missing data in your Datos. Look and see if the mctp() function has an argument that controls what it does with missing data. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 7/16/13 2:29 PM, "Lee Jejen" <yitus_14 at hotmail.com> wrote:>Hello, I have a problem... I tried using a function and I get the error: >"ERROR: missing value where TRUE/FALSE needed" >Here is my code: >a<-mctp(Ecoli~Fecha, data=Datos, type = "Tukey", alternative >"two.sided", asy.method = "mult.t", plot.simci = TRUE)summary(a) >Ecoli, Fecha and Datos are well defined. I don't know what is the >problem... >THANKS > > [[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.