Skip to content
Back to formatted view

Raw Message

Message-ID: <loom.20071214T204701-394@post.gmane.org>
Date: 2007-12-14T20:49:20Z
From: Dieter Menne
Subject: flagging glm models with warnings

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()

Dieter