I found myself the reason of the failure. The last row of the matrix input to lm contains all NAs for some reason that I'm going to investigate.
I apologize for my previous message. Please, discard it. Sincerely, -- Maura E.M [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.