OK, I see.  I thought R was just returning the character strings of the
model names without doing any assigning, since that's what it displayed. I
had it right all along. Thanks for your help.

On Fri, Sep 23, 2011 at 1:45 PM, R. Michael Weylandt <
michael.weyla...@gmail.com> wrote:

> What exactly is the problem? Like I said, I'd personally put this in a
> list, but this seems like exactly what you wanted...
>
> > model1
>
> Call:
> lm(formula = y ~ x[, i])
>
> Coefficients:
> (Intercept)       x[, i]
>      1.0489       0.7175
>
> > model2
>
> Call:
> lm(formula = y ~ x[, i])
>
> Coefficients:
> (Intercept)       x[, i]
>     -0.4342       0.8734
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to