See the Details section of ?lm where its all discussed.

On Sun, Nov 29, 2009 at 11:46 AM, Carl Witthoft <c...@witthoft.com> wrote:

> Hi,
> A recent thread provided a (working) construct for lm:
>
> lm(as.matrix(freeny[ix]) ~., freeny[-ix])
>
>
> Can someone explain what is meant by the formula in that expression,
> that is,  what does "mymatrix~."  do?  I couldn't find any such example in
> the lm() or formula() help pages.
>
> thanks
> Carl
>
> ______________________________________________
> 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.
>

        [[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