[R] lm() function

Cleber Nogueira Borges klebyn at yahoo.com.br
Fri May 30 00:12:58 CEST 2008


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 a=NA.so 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

cleber


		
_______________________________________________________ 

Experimente já e veja as novidades.



More information about the R-help mailing list