srinivasa raghavan
2001-Nov-06 06:15 UTC
[R] Canonical Correspondence analysis-CoCoAn package
Hi R-users, I am new to R environment.I want to carry out a correspondence analysis on a contigency table with 64 columns and 298 observation of Environmental data.In many cells of the contigency table the frequency is just the value '1'. I got the following error.> CAIV(Eplankton)Error in if (L[i, j] < 0) return("Table L must contain non-negative numbers") : missing value where logical needed In addition: Warning message: "<" not meaningful for factors in:Ops.factor(L[i,j],0) Any suggestion on what went wrong. Thanks in advance srinivas __________________________________________________ Find a job, post your resume. http://careers.yahoo.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I don't understand why.. your matrix must contain only non-negative number. I think that the problem is that your data "Eplankton" is not convenient for CAIV. Can you send me your data set so i will see where is the problem.>Hi R-users, > > I am new to R environment.I want to carry out a >correspondence analysis on a contigency table with 64 >columns and 298 observation of Environmental data.In >many cells of the contigency table the frequency is >just the value '1'. > >I got the following error. > > >> CAIV(Eplankton) >Error in if (L[i, j] < 0) return("Table L must contain >non-negative numbers") : > missing value where logical needed >In addition: Warning message: >"<" not meaningful for factors in:Ops.factor(L[i,j],0) > > >Any suggestion on what went wrong. > >Thanks in advance-- St?phane DRAY --------------------------------------------------------------- Biom?trie et Biologie ?volutive - Equipe "?cologie Statistique" Universite Lyon 1 - Bat 711 - 69622 Villeurbanne CEDEX - France Tel : 04 72 43 27 56 Fax : 04 78 89 27 19 04 72 43 27 57 E-mail : dray at biomserv.univ-lyon1.fr --------------------------------------------------------------- ADE-4 http://pbil.univ-lyon1.fr/ADE-4/ADE-4F.html --------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear srinivasa, i've look at your file.. There is an empty cell (species: the second RO81, row:76) that crash the CAIV function !!. So you must modify your file, save it in text and do: Eplank_read.table("Zoo_plankton.txt",heder=T,sep="\t") matE_data.matrix(Eplank[,3:67]) #dim(matE): 296 by 65 CAIV(matE) Sincerely -- St?phane DRAY --------------------------------------------------------------- Biom?trie et Biologie ?volutive - Equipe "?cologie Statistique" Universite Lyon 1 - Bat 711 - 69622 Villeurbanne CEDEX - France Tel : 04 72 43 27 56 Fax : 04 78 89 27 19 04 72 43 27 57 E-mail : dray at biomserv.univ-lyon1.fr --------------------------------------------------------------- ADE-4 http://pbil.univ-lyon1.fr/ADE-4/ADE-4F.html --------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._