[R] Error Subscript out of bounds in ca

annekatrin.st at gmx.de annekatrin.st at gmx.de
Fri May 13 13:44:40 CEST 2011


Hello,
I want to do a simple correspondence analysis in R, using the ca package.
First, I create and define a 2-by-2-table (table=table(var1,var2)), which looks like this: 

           Low(var1)  high(var1)
Low(var2)  35         28
High(var2) 26         32

Var1 and Var2 are categorical factors.
When I want to run the ca on this table (typing ca(table)),
I get the following error message: 

Fehler in t(obj$rowcoord[, 1:nd]) : Indizierung außerhalb der Grenzen
(subscript out of bounds)

I don’t know why the ca command doesn’t work, can you help me?

Thanks!!



--



More information about the R-help mailing list