Re: [R] Lars package

From: Niels Richard Hansen <>
Date: Thu, 07 Apr 2011 14:46:39 -0700


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.

On 07/04/11 05.10, David Winsemius wrote:
> On Apr 7, 2011, at 3:43 AM, wrote:
>> 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.
> 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.

Niels Richard Hansen                     Web:	
Associate Professor                      Email:
Department of Mathematical Sciences   
University of Copenhagen                 Skype:	
Universitetsparken 5                     Phone: +1 510 502 8161	
2100 Copenhagen Ø

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 07 Apr 2011 - 21:49:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 07 Apr 2011 - 21:50:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive