I think now I have got some understanding of the things. y ~ x1+x2 first adds x1 to the model and then adds x2 . But y~x2+x1 adds x2 first, so the value we get are different.
please correct me if i am wrong. On Sun, Dec 14, 2008 at 9:48 PM, hadley wickham <h.wick...@gmail.com> wrote: >> anyone please explain why this happens.. I know this happens when x1 >> and x2 has different sizes. but here x1 and x2 have same dimension. > > Given that this is a homework problem, I think the onus is on you to > figure this out, not on us to help you. In almost all classes, you > are expected to work on homework by yourself, and not solicit help > from others - this is often known as "cheating". > > Hadley > > -- > http://had.co.nz/ > ______________________________________________ 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.