Re: [R] lm() function

From: Cleber Nogueira Borges <>
Date: Thu, 29 May 2008 19:12:58 -0300

hanen wrote:
> hi,
> my linear model is y=c+a*x1+b*x2 i tried to found a, c, b by the use of:
> mymodel<-lm(y~1+x1+x2) where y, x1, x2 are 3 vectors with the same length
> the result is i want to know where is the problem.

It's the sum of x1 and x2 equal to one?
run the command: round( sum( c(x1,x2) ),12)==1


Experimente jŠ e veja as novidades. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 29 May 2008 - 22:18:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 30 May 2008 - 00:30:42 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive