On 13.05.2011 13:44, annekatrin...@gmx.de wrote:
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)


Hard to help, since we do not know what "ca" actually is (and we could only guess). If you mean the one in a package also called "ca": Please report the bug to the maintainer of the package rather than to R-help and tell him to use x[i,j,drop=FALSE] for matrix indexing if a matrix is assumed as the output (just a guess, but if this is not the problem, it may cause other hicc ups).

Best,
Uwe Ligges




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

Thanks!!



--

______________________________________________
R-help@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.

______________________________________________
R-help@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.

Reply via email to