Message-ID: <Pine.A41.4.33.0104210811490.9528-100000@homer37.u.washington.edu>
Date: 2001-04-21T15:15:49Z
From: Thomas Lumley
Subject: within-subject stdized regression w missing data
In-Reply-To: <200104211033.GAA04975@cattell.psych.upenn.edu>
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
crashing.
-thomas
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._