search for: xdat1

Displaying 1 result from an estimated 1 matches for "xdat1".

Did you mean: dat1
2008 Jun 07
2
Using lm with a matrix?
...ound > ydat [,1] [,2] [1,] 5 13 [2,] 8 17 [3,] 11 21 > lrg <- lm(y~x) Error in eval(expr, envir, enclos) : object "y" not found > lrg <- lm(ydat~xdat) > lrg Call: lm(formula = ydat ~ xdat) Coefficients: [,1] [,2] (Intercept) 2 9 xdat1 3 4 xdat2 NA NA -- View this message in context: http://www.nabble.com/Using-lm-with-a-matrix--tp17708207p17708207.html Sent from the R help mailing list archive at Nabble.com.