Skip to content

Lars package

3 messages · achin at cse.iitb.ac.in, David Winsemius, Niels Richard Hansen

#
Hello,

I am a student of IIT Bombay and I am using lars for one of my projects. I
wanted to enquire if lars is using C under the hood. Is it true? Can
someone point me to the corresponding C function? Thank You very much.

Regards,
Achin Bansal
#
On Apr 7, 2011, at 3:43 AM, achin at cse.iitb.ac.in wrote:

            
If you just type lars at the console (after loading the package) , you  
will see the uncommented code.

Most of R has "C (or Fortran) under the hood", so there may be a  
semantic problem in answering that direct question.

You can get the full source on any CRAN mirror.
#
Achin

Without dwelling too much on the semantic problem, the answer
to my understanding of your question is: No, there is no C code in the
lars package, but there is a single Fortran routine in the package.
The Fortran routine does not seem to do anything useful in itself.

By the way, the more recent glmnet package by the same authors provides
a faster alternative to lars (for lasso), and it works for glm's too.

- Niels
On 07/04/11 05.10, David Winsemius wrote: