s-news
[Top] [All Lists]

Many regressions

To: <S-news@wubios.wustl.edu>
Subject: Many regressions
From: "Quinn, David" <David.Quinn@nrgenergy.com>
Date: Thu, 20 Jun 2002 17:10:14 -0500
Cc: "Quinn, David" <David.Quinn@nrgenergy.com>
Thread-index: AcIYjhPfa597XLokSA6Xh3vmSIdiCAADDqAQ
Thread-topic: [S] about aggregate
I want to run several thousand independent linear regressions of the form

lm(y~x)

without building a loop, which runs too slow.  Each pair of x and y vectors 
generates an independent pair of regression intercept and slope.  Is there a 
way to vectorize this?

Thanks,
David


<Prev in Thread] Current Thread [Next in Thread>