Re: [R] two methods for regression, two different results

2005-04-05 Thread Jari Oksanen
On Tue, 2005-04-05 at 22:54 -0400, John Sorkin wrote: > Please forgive a straight stats question, and the informal notation. > > let us say we wish to perform a liner regression: > y=b0 + b1*x + b2*z > > There are two ways this can be done, the usual way, as a single > regression, > fit1<-lm(y

RE: [R] two methods for regression, two different results

2005-04-05 Thread Bill.Venables
This is possible if x and z are orthogonal, but in general it doesn't work as you have noted. (If it did work it would almost amount to a way of inverting geenral square matrices by working one row at a time, no going back...) It is possible to fit a bivariate regression using simple linear regre