I can replicate it as follows:

> (DF <- data.frame(x=c(1:2, NA, NA), y=c(NA, NA, 3:4)))
  x  y
1  1 NA
2  2 NA
3 NA  3
4 NA  4
> lm(y~x, DF, na.action=na.omit)
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
       0 (non-NA) cases

does this help? spencer graves

Shadi Barakat wrote:

Hello all,

I've seen this error posted before, but no hints to its origin. Does
anyone have any ideas?

------------------------------------------------
Error in lm.fit(x, y, offset = offset, ...) :
0 (non-NA) cases ------------------------------------------------


Thx

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help



______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to