[R] within-subject stdized regression w missing data

Thomas Lumley tlumley at u.washington.edu
Sat Apr 21 17:15:49 CEST 2001

On Sat, 21 Apr 2001, Jonathan Baron wrote:

> One thing I've got to do is make sure that each subject's
> regression will actually run, or omit the ones that won't, or
> else the whole thing bombs.  I have been unable to get lm() to
> proceed without doing this with several extra steps.  (I did read
> the help page.)

This part can be easily solved. Use try() as a wrapper around your lm().
It captures errors and returns an object of class "try-error" instead of


Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list