Re: [R] lda() - again.

From: Adaikalavan Ramasamy <ramasamy_at_cancer.org.uk>
Date: Wed 14 Jul 2004 - 11:35:11 EST

I remember doing this some time ago but forgot. Perhaps this might help you

 MASS:::predict.lda

On Tue, 2004-07-13 at 23:56, marzban wrote:
> Hi.
>
> I asked a question about lda() and got some answers. However, one
> question remains (which is not independent of the earlier ones):
>
> What output does lda() produce which I can use to compute the
> posteriors? I know predict(lda())$posterior will give me precisely the
> posteriors, but suppose I'd like to compute them myself, outside
> of R.
>
> So far, I have not been able to use "coefficients of linear
> discrimiants" to do this, for they don't seem to be the alpha and beta
> in log(post) ~ alpha x + beta (this eqn being a caricature of
> LDA in Ripley).
>
> Caren



R-help@stat.math.ethz.ch 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 Received on Wed Jul 14 11:41:15 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:56 EST