Skip to content
Back to formatted view

Raw Message

Message-ID: <20021101025412.31181.qmail@web12507.mail.yahoo.com>
Date: 2002-11-01T02:54:12Z
From: Peter Lambrakis
Subject: batch multiple regressions and pipe results to file

I am looking to mass batch about 1000 or so multiple linear regressions
with an arbitrary number of independent variables (from 2 to 10) using
the step function. I wrote a short perl script that queries a database
and generates the R code to create the model/formula. 
 
How can I: 
    1. Get R to re-run the regression for each stepped regression using
the "best fitted model/formula" it just found (AIC).
    2. Output that model/formula and extract its regression results
(i.e. coefficients, Rsq, p-values, etc) into a file in a consistent and
    easy to parse/read format so that I write them back into a
database.
 
Thanks in advance.
 
Peter Lambrakis


__________________________________________________

HotJobs - Search new jobs daily now

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._