[R] Problem with function lda of the MASS package

Winfried Theis theis at statistik.uni-dortmund.de
Wed Nov 3 18:06:58 CET 1999


Dear Prof. Ripley,
dear R-Users,

I just tested the function "lda" from the MASS package and got the following
error-message:

> test<-lda(rnkonj,nkonj$V14,CV=T)
Error in NextMethod("lda") : negative length vectors are not allowed

I add the used dataset as attachment. There are 14 Variables in this dataset
and variable 14 is the classification into 4 groups. The dataframe "rnkonj"
consists only of the first 13 variables without the classification.

Is it only a problem of NOT giving a value for "subset" -- though I thought
after reading the help-page, this variable can be omitted...

I'm running R 0.65.0 from the SuSE-rpm package on a SuSE-Linux 6.2 system with
a Pentium 200  and 64MB RAM.

Any ideas or suggestions are welcome!

Thanks in advance,

Winfried Theis

----------------------------------
E-Mail: Winfried Theis <theis at amadeus.statistik.uni-dortmund.de>
Date: 03-Nov-99
Time: 17:18:45

Dipl.-Math. Winfried Theis, SFB 475, Fachbereich Statistik, Universit"at
Dortmund, 44221 Dortmundl
----------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: konj554.datR
Type: application/octet-stream
Size: 14726 bytes
Desc: konj554.datR
Url : https://stat.ethz.ch/pipermail/r-help/attachments/19991103/e6b7ef69/konj554.obj


More information about the R-help mailing list