[R] problem with cov.* in package lqs
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Jan 24 15:32:55 CET 2001
On Wed, 24 Jan 2001, Liaw, Andy wrote:
> Hi everyone,
> I ran into an error message when I use the cov.* (rob, mcd, mve) function in
> the package lqs. The data matrix is 761 rows by 661 columns. I get the
> following message:
> NA/NaN/Inf in foreign function call (arg 1)
> Can anyone provide some insight on why this occurs, and better yet, how to
> get around it?
Not without more information. But that is probably in
z <- .C("mve_fitlots", as.double(x), as.integer(n), as.integer(p),
in which case it probably means some column has IQR 0.
Generally, you need to help yourself on these things.
1) traceback() tells you where the error is.
2) debug(cov.rob) and re-run the call, and step though a line at a time
In particular, look at divisor.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
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