[R] problem using MASS corresp and mca functions
ligges at statistik.uni-dortmund.de
Sat Nov 11 19:56:19 CET 2000
Alexandre Fayolle wrote:
> I'm an absolute beginner with R and neophite in data analysis, so please bear
> with me if I ask stupid question.
> I'm trying to do a correspondence analysis using R and MASS corresp function,
> but I get an error message which I'm unable to interpret:
> > data(weblog)
read.table(filename, sep=";", header=TRUE)
instead of data(weblog). I guess the file is not read in correctly (?).
> > library(MASS)
> > corresp(~ url + fromurl, data=weblog)
> Error in svd(t(t(x1 * Dr) * Dc)) : error 306 in dsvdc
Works for me, so I think it is the way you read in the data. Have you
checked, if the data.frame weblog looks OK in R?
[Assuming you are running R-1.1.1 and the latest MASS package]
> Similarly, I get another error if I try to use mca:
> > mca(weblog)
> Error in (rep(1, n)) %*% G : non-conformable arguments
> I'm a bit stuck there, with the impression that I'm missing something
> The data I'm using is a csv file extracted from an web server logfile. The first
> lines are:
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
More information about the R-help