[R] flagging glm models with warnings
dieter.menne at menne-biomed.de
Fri Dec 14 21:49:20 CET 2007
Caroline Paulsen <cpaulsen <at> u.washington.edu> writes:
> I'm attempting to run 250 permutations of a negative binomial GLM model for
> data on fish counts. Many of the models are fit appropriately, but some
> issue warnings such as "convergence not reached" or "step size truncated due
> to divergence."
> I'd like to figure out a way to flag the models that have warnings and
> output them into either a table or into R console. Then I could evaluate the
> problems associated with these models and know not choose them as the best
> models for fitting the data.
You could promote the options to errors (?warning) and use try()
More information about the R-help