Skip to content
Back to formatted view

Raw Message

Message-ID: <971536df0905180616s70580782k4ee9481f34ab2892@mail.gmail.com>
Date: 2009-05-18T13:16:08Z
From: Gabor Grothendieck
Subject: intermediate iterations of stepwise regression
In-Reply-To: <4A115E98.40101@global-analytics.com>

Try this:

out <- capture.output(example(step))


On Mon, May 18, 2009 at 9:11 AM, utkarshsinghal
<utkarsh.singhal at global-analytics.com> wrote:
> Hi all,
>
> I am performing a stepwise regression by running the "step" function on an
> "lm" object. Now I want to save the intermediate iterations. I know the
> argument trace=T will print it on the console, but I rather want to assign
> it to some R object or may be output it in a CSV or text file.
>
> Any help will be appreciated.
>
> Regards
> Utkarsh
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>