Re: [R] error tracing

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Fri 12 Aug 2005 - 22:43:46 EST

Steve Adams <steve_adams_sd <at> yahoo.com> writes:  

> Hi, I am running some Cox modeling on large number of
> variables (thousands) using apply. For some reasons,
> some of the variables have problems in Cox regression,
> so the the run was stopped automatically. Is there a
> way to keep the running for all the variables to
> complete and let us, when done, to trace back which of
> the variables cause the problem?

Since each Cox model is a bit of work, you won't notice the difference if you used a loop instead of apply. Within the for-loop, use try() to catch the bad guys.

Dieter



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 12 22:57:30 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:16:21 EST