Frank Gibbons wrote:
Wei Geng,

I asked the same question about six weeks ago, so let me try to answer it. The source for the entire package 'MASS' is in a single file, I believe (at least this is true on my Linux setup).


The thread gets boring, but let me correct this "belief":

NO! There is one file including all R code, if you are looking into the binary installation of a package, and then the C/Fortran sources are not more visible.

Look into the source distribution of a package for a more structured view of things!

Uwe Ligges




> The exact location of
that file you'll have to determine by searching the directory/folder where you installed it. The function 'lda' is implemented entirely in R itself, like much of its functionality. Look at the functions 'lda' and 'predict.lda' in this file for details.

Comments are sparse in most R code, from what I gather, but if you look in "Pattern Recognition and Neural Networks" by Brian Ripley (one of the authors of this package), you'll find a discussion in section 2.4 'Predictive classification' that covers much of what's going on, from what I've been able to glean.

I hope that helps. There are certainly others out there who are more au fait with this than me.

-Frank Gibbons


At 05:47 PM 10/1/2003, you wrote:


Wei Geng wrote:

I am new to R. Trying to find out how lda() {in MASS R1.8.0 Windows} was
implemented in R. Does anyone know where to find out lda source code ?
Thanks.


Here:

http://cran.r-project.org

Hint: MASS is a *package*. You want to view its *source*.

Same with most other R packages. Or just about anything else you want to know about R.

Cheers

Jason
--
Indigo Industrial Controls Ltd.
http://www.indigoindustrial.co.nz
64-21-343-545
[EMAIL PROTECTED]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


PhD, Computational Biologist,
Harvard Medical School BCMP/SGM-322, 250 Longwood Ave, Boston MA 02115, USA.
Tel: 617-432-3555 Fax: 617-432-3557 http://llama.med.harvard.edu/~fgibbons


______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to