Dear Alan, I believe that the short answer is "no," since lm() requires a complete data set. Flexibility is provided by your ability to write your own na.action function, but that won't cover this case. Moreover, pairwise deletion of missing data is probably ill-advised.
On the other hand, it shouldn't be hard to write a function that computes regressions using pairwise deletion, starting with a covariance matrix returned by cov(). I hope this helps, John > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Simpson > Sent: Sunday, September 12, 2004 11:04 PM > To: '[EMAIL PROTECTED]' > Subject: [R] pairwise deletion of missing cases in lm > > Does anybody know if there is some sort of "pairwise" option > for handling missing cases in lm and computing the relevant > statistics? > > I would be much obliged if anyone could help... > > Regards > > Alan Simpson > Roberts Research Group > ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
