On Tue, 30 May 2006, [EMAIL PROTECTED] wrote:

> I would like to call the R regression routines in C/C++. I have seen that
> it is possible to call distribution function, optimisation routines etc,
> but is it possible to call a simple OLS and which is the relevant header
> file?

Regression is done in Fortran and is not part of the standalone nmath (nor 
are the optimization routines).  If you meant from C/C++ code in an R 
package, take a look at e.g. lqs in MASS which does this via the routines 
declared in R_ext/Applic.h.  Similar routines are called by lm.fit.


-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to