Hi,

I have done different discriminant function analysis of multivariat data. With the CV=True option I was not able to perform the predict() call. What do I have to do? Or is there no possibility at all? You also need the predicted values to produce a plot of the analysis, as far as I know.

Here my code:

pcor.lda2<-lda(pcor~habarea+hcom+isol+flowcov+herbh+inclin+windprot+shrubcov+baregr, data=pcor.df, CV=T)
table2<-table(pcor.df$pcor, pcor.lda2$class)
table2

#doesn't work, becoause CV=True?
pcor.ld2<-predict(pcor.lda2, dimen=1)$x
plot(pcor.ld2)
plot(pcor.lda2, type="density", dimen=1) #kernel density estimates 

I am happy if I get an answer from somebody!


Stefanie von Felten
Institut für Umweltwissenschaften
Universität Zürich
Winterthurerstrasse 190
CH-8057 Zürich

e-mail: sfelten@uwinst.unizh.ch
telefon: +41 (0)1 635 61 23
felefax: +41 (0)1 635 57 11
	[[alternative HTML version deleted]]


