Skip to content
Prev 174947 / 398503 Next

very fast OLS regression?

Yes, Bert.  Any least-squares solution that forms X'X and then inverts it is not to be recommended.  If X is nearly rank-deficient, then X'X will be more strongly so.  The QR decomposition approach in my byhand.qr() function is reliable and fast.

Ravi.
____________________________________________________________________

Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University

Ph. (410) 502-2619
email: rvaradhan at jhmi.edu


----- Original Message -----
From: Bert Gunter <gunter.berton at gene.com>
Date: Wednesday, March 25, 2009 6:03 pm
Subject: Re: [R] very fast OLS regression?
To: 'ivo welch' <ivowel at gmail.com>, 'Dimitris Rizopoulos' <d.rizopoulos at erasmusmc.nl>
Cc: 'r-help' <r-help at stat.math.ethz.ch>