Skip to content

discriminant function analysis in R

1 message · Graham Jones

#
In message <200503301005.j2UA3CBr019053 at hypatia.math.ethz.ch>, r-help-
request at stat.math.ethz.ch writes
[...]

I would recommend writing your own simple version of lda in R. For
example, stick to two class problems, and don't worry too much about
efficiency or dealing with bad input. Then think about how you might
make your routines of more general use (but don't bother to implement
this). This is a good way of learning R, and having got this far on your
own, you will find the documentation and examples for lda make sense.
Well, it worked for me.

Here's some useful functions:
?"%*%"
?t
?determinant
?solve
?mean
?cov
?cat
?scan