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: [EMAIL PROTECTED]
telefon: +41 (0)1 635 61 23
felefax: +41 (0)1 635 57 11
[[alternative HTML version deleted]]
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html