Skip to content
Prev 145664 / 398500 Next

lm() function

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.